Bug 1033464 - Do not set nsXBLPrototypeBinding binding element for ShadowRoot. r=smaug

--HG--
extra : rebase_source : 2ba913a39fe1c57a50d499b3ebea707024742101
This commit is contained in:
William Chen 2014-10-23 10:50:39 -07:00
parent 4c55acb4db
commit cfe73894a6

View File

@ -957,7 +957,7 @@ Element::CreateShadowRoot(ErrorResult& aError)
nsXBLPrototypeBinding* protoBinding = new nsXBLPrototypeBinding();
aError = protoBinding->Init(NS_LITERAL_CSTRING("shadowroot"),
docInfo, this, true);
docInfo, nullptr, true);
if (aError.Failed()) {
delete protoBinding;
return nullptr;