summaryrefslogtreecommitdiffstats
path: root/dom/base/nsContentUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsContentUtils.cpp')
-rw-r--r--dom/base/nsContentUtils.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp
index f8964d198..b029f9793 100644
--- a/dom/base/nsContentUtils.cpp
+++ b/dom/base/nsContentUtils.cpp
@@ -9642,13 +9642,8 @@ nsContentUtils::GetElementDefinitionIfObservingAttr(Element* aCustomElement,
nsIAtom* aExtensionType,
nsIAtom* aAttrName)
{
- nsString extType = nsDependentAtomString(aExtensionType);
- NodeInfo *ni = aCustomElement->NodeInfo();
-
CustomElementDefinition* definition =
- LookupCustomElementDefinition(aCustomElement->OwnerDoc(), ni->LocalName(),
- ni->NamespaceID(),
- extType.IsEmpty() ? nullptr : &extType);
+ aCustomElement->GetCustomElementDefinition();
// Custom element not defined yet or attribute is not in the observed
// attribute list.