diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:04:42 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:04:42 -0400 |
commit | 873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806 (patch) | |
tree | 11bf691b4aed8b1a0834bdc7b7c1bc4eda739713 /dom/base/Element.h | |
parent | 96dfc63bc583454fb895c7a23f685995f5410388 (diff) | |
download | UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar.gz UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar.lz UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.tar.xz UXP-873abc7bcb6adc5cbf98ba3e1bd9a3271afc9806.zip |
Bug 1404842 - Implement Element.attachShadow and Element.slot
Tag #1375
Diffstat (limited to 'dom/base/Element.h')
-rw-r--r-- | dom/base/Element.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/base/Element.h b/dom/base/Element.h index 88f416be7..6169fbdab 100644 --- a/dom/base/Element.h +++ b/dom/base/Element.h @@ -471,6 +471,9 @@ protected: mState &= ~aStates; } + already_AddRefed<ShadowRoot> AttachShadowInternal(bool aClosed, + ErrorResult& aError); + private: // Need to allow the ESM, nsGlobalWindow, and the focus manager to // set our state @@ -921,6 +924,13 @@ public: already_AddRefed<DOMRectList> GetClientRects(); already_AddRefed<DOMRect> GetBoundingClientRect(); + // Shadow DOM v1 + already_AddRefed<ShadowRoot> AttachShadow(const ShadowRootInit& aInit, + ErrorResult& aError); + void SetSlot(const nsAString& aName, ErrorResult& aError); + void GetSlot(nsAString& aName); + + // [deprecated] Shadow DOM v0 already_AddRefed<ShadowRoot> CreateShadowRoot(ErrorResult& aError); already_AddRefed<DestinationInsertionPointList> GetDestinationInsertionPoints(); |