Bug 1409079: Simplify WebComponents enabled checks. r=smaug

MozReview-Commit-ID: F8WAYvregRu
This commit is contained in:
Emilio Cobos Álvarez
2017-10-17 11:37:07 +02:00
parent 1567bb133d
commit cb02b21a74
8 changed files with 10 additions and 28 deletions

View File

@@ -16,7 +16,7 @@ NS_NewHTMLSlotElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
{
RefPtr<mozilla::dom::NodeInfo> nodeInfo(aNodeInfo);
/* Disabled for now
if (nsDocument::IsWebComponentsEnabled(nodeInfo)) {
if (nsContentUtils::IsWebComponentsEnabled()) {
already_AddRefed<mozilla::dom::NodeInfo> nodeInfoArg(nodeInfo.forget());
return new mozilla::dom::HTMLSlotElement(nodeInfoArg);
}
@@ -64,4 +64,4 @@ HTMLSlotElement::WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
}
} // namespace dom
} // namespace mozilla
} // namespace mozilla