summaryrefslogtreecommitdiffstats
path: root/dom/base/nsGenericDOMDataNode.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/nsGenericDOMDataNode.h
parent55d83ea6f9aa9d99963a4d1fb1f96a3b633ede49 (diff)
downloadUXP-3758434680616e91edf696e546fe3cc3b1d4da9c.tar
UXP-3758434680616e91edf696e546fe3cc3b1d4da9c.tar.gz
UXP-3758434680616e91edf696e546fe3cc3b1d4da9c.tar.lz
UXP-3758434680616e91edf696e546fe3cc3b1d4da9c.tar.xz
UXP-3758434680616e91edf696e546fe3cc3b1d4da9c.zip
Bug 1408341 - Implement assignedSlot on Element and Text
Tag #1375
Diffstat (limited to 'dom/base/nsGenericDOMDataNode.h')
-rw-r--r--dom/base/nsGenericDOMDataNode.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/dom/base/nsGenericDOMDataNode.h b/dom/base/nsGenericDOMDataNode.h
index e8818b518..97bd79129 100644
--- a/dom/base/nsGenericDOMDataNode.h
+++ b/dom/base/nsGenericDOMDataNode.h
@@ -26,6 +26,12 @@
class nsIDocument;
class nsIDOMText;
+namespace mozilla {
+namespace dom {
+class HTMLSlotElement;
+} // namespace dom
+} // namespace mozilla
+
#define DATA_NODE_FLAG_BIT(n_) NODE_FLAG_BIT(NODE_TYPE_SPECIFIC_BITS_OFFSET + (n_))
// Data node specific flags
@@ -157,6 +163,8 @@ public:
virtual nsTArray<nsIContent*> &DestInsertionPoints() override;
virtual nsTArray<nsIContent*> *GetExistingDestInsertionPoints() const override;
virtual void SetShadowRoot(mozilla::dom::ShadowRoot* aShadowRoot) override;
+ virtual mozilla::dom::HTMLSlotElement* GetAssignedSlot() const override;
+ virtual void SetAssignedSlot(mozilla::dom::HTMLSlotElement* aSlot) override;
virtual nsIContent *GetXBLInsertionParent() const override;
virtual void SetXBLInsertionParent(nsIContent* aContent) override;
virtual bool IsNodeOfType(uint32_t aFlags) const override;
@@ -264,6 +272,11 @@ protected:
* @see nsIContent::GetDestInsertionPoints
*/
nsTArray<nsIContent*> mDestInsertionPoints;
+
+ /**
+ * @see nsIContent::GetAssignedSlot
+ */
+ RefPtr<mozilla::dom::HTMLSlotElement> mAssignedSlot;
};
// Override from nsINode