Bug 656183: remove duplicate call to SetCanvasElement. r=joe

This commit is contained in:
Benjamin Peterson 2011-05-18 21:23:00 -04:00
parent d3aa297de2
commit f41c05a7d6

View File

@ -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))