Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D57699
This commit is contained in:
@@ -80,8 +80,8 @@ nsresult HTMLScriptElement::Clone(dom::NodeInfo* aNodeInfo,
|
||||
nsINode** aResult) const {
|
||||
*aResult = nullptr;
|
||||
|
||||
HTMLScriptElement* it =
|
||||
new HTMLScriptElement(do_AddRef(aNodeInfo), NOT_FROM_PARSER);
|
||||
HTMLScriptElement* it = new (aNodeInfo->NodeInfoManager())
|
||||
HTMLScriptElement(do_AddRef(aNodeInfo), NOT_FROM_PARSER);
|
||||
|
||||
nsCOMPtr<nsINode> kungFuDeathGrip = it;
|
||||
nsresult rv = const_cast<HTMLScriptElement*>(this)->CopyInnerTo(it);
|
||||
|
||||
Reference in New Issue
Block a user