Bug 1033464 - Do not set nsXBLPrototypeBinding binding element for ShadowRoot. r=smaug
authorWilliam Chen <wchen@mozilla.com>
Thu, 23 Oct 2014 10:50:39 -0700
changeset 212302 1b4e8921ba1659f3233e24b856cf6f51c85a095f
parent 212301 37e6b0283f65dd04aa9de3bdd1cb15b51661ace1
child 212303 03b6a747eac115e2df717486586e502e364a8edf
push id27704
push userkwierso@gmail.com
push dateSat, 25 Oct 2014 01:25:30 +0000
treeherdermozilla-central@e37231060eb4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1033464
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1033464 - Do not set nsXBLPrototypeBinding binding element for ShadowRoot. r=smaug
content/base/src/Element.cpp
--- a/content/base/src/Element.cpp
+++ b/content/base/src/Element.cpp
@@ -952,17 +952,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;
   }
 
   nsIDocument* doc = GetCrossShadowCurrentDoc();
   nsIContent* destroyedFramesFor = nullptr;
   if (doc) {