mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / TextNode.assignedSlot on closed shadow root
Tag #1375
This commit is contained in:
parent
67c4d022dc
commit
31b26a24e3
8 changed files with 67 additions and 11 deletions
|
|
@ -724,6 +724,15 @@ public:
|
|||
*/
|
||||
virtual void SetAssignedSlot(mozilla::dom::HTMLSlotElement* aSlot) = 0;
|
||||
|
||||
/**
|
||||
* Gets the assigned slot associated with this content based on parent's
|
||||
* shadow root mode. Returns null if parent's shadow root is "closed".
|
||||
* https://dom.spec.whatwg.org/#dom-slotable-assignedslot
|
||||
*
|
||||
* @return The assigned slot element or null.
|
||||
*/
|
||||
mozilla::dom::HTMLSlotElement* GetAssignedSlotByMode() const;
|
||||
|
||||
/**
|
||||
* Gets the insertion parent element of the XBL binding.
|
||||
* The insertion parent is our one true parent in the transformed DOM.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue