Bug 1555216 - Cache owner doc in the BindContext. r=bzbarsky
And use it to avoid some pointer chases per the review comments of D32949. Differential Revision: https://phabricator.services.mozilla.com/D33288
This commit is contained in:
@@ -52,7 +52,7 @@ nsresult HTMLScriptElement::BindToTree(BindContext& aContext,
|
||||
nsresult rv = nsGenericHTMLElement::BindToTree(aContext, aParent);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (GetComposedDoc()) {
|
||||
if (IsInComposedDoc()) {
|
||||
MaybeProcessScript();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user