mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Bug 1301024 - Part 2: Implement create an element steps.
Tag UXP Issue #1344
This commit is contained in:
parent
054c852fd2
commit
b0285ef3f7
5 changed files with 129 additions and 5 deletions
|
|
@ -931,7 +931,7 @@ DoUpgrade(Element* aElement,
|
|||
} // anonymous namespace
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#upgrades
|
||||
void
|
||||
/* static */ void
|
||||
CustomElementRegistry::Upgrade(Element* aElement,
|
||||
CustomElementDefinition* aDefinition,
|
||||
ErrorResult& aRv)
|
||||
|
|
@ -969,8 +969,10 @@ CustomElementRegistry::Upgrade(Element* aElement,
|
|||
(attrValue.IsEmpty() ? NullString() : attrValue),
|
||||
(namespaceURI.IsEmpty() ? NullString() : namespaceURI)
|
||||
};
|
||||
EnqueueLifecycleCallback(nsIDocument::eAttributeChanged, aElement,
|
||||
&args, aDefinition);
|
||||
nsContentUtils::EnqueueLifecycleCallback(aElement->OwnerDoc(),
|
||||
nsIDocument::eAttributeChanged,
|
||||
aElement,
|
||||
&args, aDefinition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -995,7 +997,9 @@ CustomElementRegistry::Upgrade(Element* aElement,
|
|||
data->mState = CustomElementData::State::eCustom;
|
||||
|
||||
// This is for old spec.
|
||||
EnqueueLifecycleCallback(nsIDocument::eCreated, aElement, nullptr, aDefinition);
|
||||
nsContentUtils::EnqueueLifecycleCallback(aElement->OwnerDoc(),
|
||||
nsIDocument::eCreated,
|
||||
aElement, nullptr, aDefinition);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue