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/nsTextNode.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/nsTextNode.h')
-rw-r--r-- | dom/base/nsTextNode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/base/nsTextNode.h b/dom/base/nsTextNode.h index 488540a82..94b8dbd1d 100644 --- a/dom/base/nsTextNode.h +++ b/dom/base/nsTextNode.h @@ -75,6 +75,10 @@ public: virtual nsIDOMNode* AsDOMNode() override { return this; } + // Need to have a copy here because including nsDocument.h in this file will + // fail to build on Windows. + static bool IsWebComponentsEnabled(JSContext* aCx, JSObject* aObject); + #ifdef DEBUG virtual void List(FILE* out, int32_t aIndent) const override; virtual void DumpContent(FILE* out, int32_t aIndent, bool aDumpAll) const override; |