diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:05:27 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:05:27 -0400 |
commit | 3a74795a56e92313c1b33a54500917794ba09b72 (patch) | |
tree | 949f2d97d27713e6a8960b948e51644bcaf27c02 /dom/base/nsIContent.h | |
parent | 873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806 (diff) | |
download | UXP-3a74795a56e92313c1b33a54500917794ba09b72.tar UXP-3a74795a56e92313c1b33a54500917794ba09b72.tar.gz UXP-3a74795a56e92313c1b33a54500917794ba09b72.tar.lz UXP-3a74795a56e92313c1b33a54500917794ba09b72.tar.xz UXP-3a74795a56e92313c1b33a54500917794ba09b72.zip |
Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / TextNode.assignedSlot on closed shadow root
Tag #1375
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. * |