Skip to content

Commit

Permalink
Bug 656183: remove duplicate call to SetCanvasElement. r=joe
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed May 19, 2011
1 parent d3aa297 commit f41c05a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions content/html/content/src/nsHTMLCanvasElement.cpp
Expand Up @@ -473,12 +473,6 @@ nsHTMLCanvasElement::GetContext(const nsAString& aContextId,
return NS_ERROR_FAILURE;
}

rv = mCurrentContext->SetCanvasElement(this);
if (NS_FAILED(rv)) {
mCurrentContext = nsnull;
return rv;
}

nsCOMPtr<nsIPropertyBag> contextProps;
if (!JSVAL_IS_NULL(aContextOptions) &&
!JSVAL_IS_VOID(aContextOptions))
Expand Down

0 comments on commit f41c05a

Please sign in to comment.