Bug 1033464 - Do not set nsXBLPrototypeBinding binding element for ShadowRoot. r=smaug, a=lsblakk
authorWilliam Chen <wchen@mozilla.com>
Thu, 23 Oct 2014 10:50:39 -0700
changeset 225852 c88c66aa42d2
parent 225851 f953384743a4
child 225853 301822ecb5fa
push id4040
push userryanvm@gmail.com
push date2014-10-29 14:22 +0000
treeherdermozilla-beta@b58f505f18df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, lsblakk
bugs1033464
milestone34.0
Bug 1033464 - Do not set nsXBLPrototypeBinding binding element for ShadowRoot. r=smaug, a=lsblakk
content/base/src/Element.cpp
--- a/content/base/src/Element.cpp
+++ b/content/base/src/Element.cpp
@@ -807,17 +807,17 @@ Element::CreateShadowRoot(ErrorResult& a
   nodeInfo = mNodeInfo->NodeInfoManager()->GetNodeInfo(
     nsGkAtoms::documentFragmentNodeName, nullptr, kNameSpaceID_None,
     nsIDOMNode::DOCUMENT_FRAGMENT_NODE);
 
   nsRefPtr<nsXBLDocumentInfo> docInfo = new nsXBLDocumentInfo(OwnerDoc());
 
   nsXBLPrototypeBinding* protoBinding = new nsXBLPrototypeBinding();
   aError = protoBinding->Init(NS_LITERAL_CSTRING("shadowroot"),
-                              docInfo, this, true);
+                              docInfo, nullptr, true);
   if (aError.Failed()) {
     delete protoBinding;
     return nullptr;
   }
 
   // Unlike for XBL, false is the default for inheriting style.
   protoBinding->SetInheritsStyle(false);