mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Bug 1392970 - Part 2: Get CustomElementDefinition from CustomElementData when possible.
Tag UXP Issue #1344
This commit is contained in:
parent
7ce1742985
commit
d1a1106760
2 changed files with 26 additions and 46 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue