summaryrefslogtreecommitdiff
path: root/dom/base/nsIContent.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 06:38:37 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 06:38:37 -0400
commit3758434680616e91edf696e546fe3cc3b1d4da9c (patch)
tree845788e5a7a90326c7026a7bd139bc222352a54f /dom/base/nsIContent.h
parent55d83ea6f9aa9d99963a4d1fb1f96a3b633ede49 (diff)
downloaduxp-3758434680616e91edf696e546fe3cc3b1d4da9c.tar.gz
Bug 1408341 - Implement assignedSlot on Element and Text
Tag #1375
Diffstat (limited to 'dom/base/nsIContent.h')
-rw-r--r--dom/base/nsIContent.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/base/nsIContent.h b/dom/base/nsIContent.h
index 25b582abd1..f368497f44 100644
--- a/dom/base/nsIContent.h
+++ b/dom/base/nsIContent.h
@@ -26,6 +26,7 @@ namespace mozilla {
class EventChainPreVisitor;
namespace dom {
class ShadowRoot;
+class HTMLSlotElement;
} // namespace dom
namespace widget {
struct IMEState;
@@ -710,6 +711,20 @@ public:
virtual nsTArray<nsIContent*> *GetExistingDestInsertionPoints() const = 0;
/**
+ * Gets the assigned slot associated with this content.
+ *
+ * @return The assigned slot element or null.
+ */
+ virtual mozilla::dom::HTMLSlotElement* GetAssignedSlot() const = 0;
+
+ /**
+ * Sets the assigned slot associated with this content.
+ *
+ * @param aSlot The assigned slot.
+ */
+ virtual void SetAssignedSlot(mozilla::dom::HTMLSlotElement* aSlot) = 0;
+
+ /**
* Gets the insertion parent element of the XBL binding.
* The insertion parent is our one true parent in the transformed DOM.
*