summaryrefslogtreecommitdiffstats
path: root/dom/base/nsTextNode.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:25:14 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:25:14 -0400
commitfd7a325bc08f1f027b692181b6c7ab5efaf619aa (patch)
tree2d5fffa0474fea1a9d2f4fb855e6aabdf4b05d4c /dom/base/nsTextNode.h
parentf0b7ba1e2b49858ce2755c61beebe3694cae882f (diff)
downloadUXP-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.h4
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;