summaryrefslogtreecommitdiffstats
path: root/dom/base/nsContentUtils.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-05 15:37:32 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:28 -0500
commit42331663e643b8366c4ec87a929161fa3fb8d775 (patch)
tree8e8a3043ae6369ef2c18b1fe2c76f3decf2ecb8b /dom/base/nsContentUtils.cpp
parent8573c572fbf5fa68defb3228e7f1450ec234d59b (diff)
downloadUXP-42331663e643b8366c4ec87a929161fa3fb8d775.tar
UXP-42331663e643b8366c4ec87a929161fa3fb8d775.tar.gz
UXP-42331663e643b8366c4ec87a929161fa3fb8d775.tar.lz
UXP-42331663e643b8366c4ec87a929161fa3fb8d775.tar.xz
UXP-42331663e643b8366c4ec87a929161fa3fb8d775.zip
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.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.