mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Bug 1404842 - Implement Element.attachShadow and Element.slot
Tag #1375
This commit is contained in:
parent
efb5979ad5
commit
67c4d022dc
48 changed files with 134 additions and 818 deletions
|
|
@ -51,7 +51,7 @@ NS_INTERFACE_MAP_END_INHERITING(DocumentFragment)
|
|||
NS_IMPL_ADDREF_INHERITED(ShadowRoot, DocumentFragment)
|
||||
NS_IMPL_RELEASE_INHERITED(ShadowRoot, DocumentFragment)
|
||||
|
||||
ShadowRoot::ShadowRoot(Element* aElement,
|
||||
ShadowRoot::ShadowRoot(Element* aElement, bool aClosed,
|
||||
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
|
||||
nsXBLPrototypeBinding* aProtoBinding)
|
||||
: DocumentFragment(aNodeInfo)
|
||||
|
|
@ -60,6 +60,7 @@ ShadowRoot::ShadowRoot(Element* aElement,
|
|||
, mIsComposedDocParticipant(false)
|
||||
{
|
||||
SetHost(aElement);
|
||||
mMode = aClosed ? ShadowRootMode::Closed : ShadowRootMode::Open;
|
||||
|
||||
// Nodes in a shadow tree should never store a value
|
||||
// in the subtree root pointer, nodes in the shadow tree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue