diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-05 15:37:32 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:28 -0500 |
commit | 42331663e643b8366c4ec87a929161fa3fb8d775 (patch) | |
tree | 8e8a3043ae6369ef2c18b1fe2c76f3decf2ecb8b /dom/base/nsContentUtils.cpp | |
parent | 8573c572fbf5fa68defb3228e7f1450ec234d59b (diff) | |
download | uxp-42331663e643b8366c4ec87a929161fa3fb8d775.tar.gz |
Bug 1392970 - Part 2: Get CustomElementDefinition from CustomElementData when possible.
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/nsContentUtils.cpp')
-rw-r--r-- | dom/base/nsContentUtils.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index f8964d198f..b029f97938 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. |