summaryrefslogtreecommitdiffstats
path: root/dom/base/nsDocument.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/nsDocument.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/nsDocument.h')
-rw-r--r--dom/base/nsDocument.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/base/nsDocument.h b/dom/base/nsDocument.h
index de2d19cdf..931bdd89d 100644
--- a/dom/base/nsDocument.h
+++ b/dom/base/nsDocument.h
@@ -793,7 +793,6 @@ public:
virtual void NotifyLayerManagerRecreated() override;
-
private:
void AddOnDemandBuiltInUASheet(mozilla::StyleSheet* aSheet);
nsRadioGroupStruct* GetRadioGroupInternal(const nsAString& aName) const;
@@ -1383,6 +1382,9 @@ protected:
public:
// Check whether web components are enabled for the global of aObject.
static bool IsWebComponentsEnabled(JSContext* aCx, JSObject* aObject);
+ // Check whether web components are enabled for the document this node belongs
+ // to.
+ static bool IsWebComponentsEnabled(const nsINode* aNode);
// Check whether web components are enabled for the global of the document
// this nodeinfo comes from.
static bool IsWebComponentsEnabled(mozilla::dom::NodeInfo* aNodeInfo);