diff options
Diffstat (limited to 'dom/base/nsIContent.h')
-rw-r--r-- | dom/base/nsIContent.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/base/nsIContent.h b/dom/base/nsIContent.h index f368497f4..8da0ba7f2 100644 --- a/dom/base/nsIContent.h +++ b/dom/base/nsIContent.h @@ -725,6 +725,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. * |