diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:25:14 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:25:14 -0400 |
commit | fd7a325bc08f1f027b692181b6c7ab5efaf619aa (patch) | |
tree | 2d5fffa0474fea1a9d2f4fb855e6aabdf4b05d4c /dom/base/nsIDocument.h | |
parent | f0b7ba1e2b49858ce2755c61beebe3694cae882f (diff) | |
download | UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar.gz UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar.lz UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.tar.xz UXP-fd7a325bc08f1f027b692181b6c7ab5efaf619aa.zip |
Bug 1422931 - Fix crash with slot element and make webcomponents preference per-doc
Tag #1375
Diffstat (limited to 'dom/base/nsIDocument.h')
-rw-r--r-- | dom/base/nsIDocument.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/base/nsIDocument.h b/dom/base/nsIDocument.h index 3088736bd..297a207fc 100644 --- a/dom/base/nsIDocument.h +++ b/dom/base/nsIDocument.h @@ -2885,6 +2885,11 @@ public: --mThrowOnDynamicMarkupInsertionCounter; } + bool IsWebComponentsEnabled() const + { + return mIsWebComponentsEnabled; + } + protected: bool GetUseCounter(mozilla::UseCounter aUseCounter) { @@ -3028,6 +3033,9 @@ protected: // container for per-context fonts (downloadable, SVG, etc.) RefPtr<mozilla::dom::FontFaceSet> mFontFaceSet; + // True if dom.webcomponents.enabled pref is set when document is created. + bool mIsWebComponentsEnabled : 1; + // Compatibility mode nsCompatibility mCompatMode; |