From fd7a325bc08f1f027b692181b6c7ab5efaf619aa Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 07:25:14 -0400 Subject: Bug 1422931 - Fix crash with slot element and make webcomponents preference per-doc Tag #1375 --- dom/base/nsTextNode.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dom/base/nsTextNode.h') 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; -- cgit v1.2.3