summaryrefslogtreecommitdiffstats
path: root/dom/bindings/BindingUtils.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 10:28:38 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:14 -0500
commitdf23f78ad16b40c244f518dba28a8555d61bdd0c (patch)
tree0d0806f435a548df4dd2d2af0df531e93bd3bc77 /dom/bindings/BindingUtils.h
parent20799ce18c18ff1ad3125ad4e8a7a679b57a858f (diff)
downloadUXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar
UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar.gz
UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar.lz
UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.tar.xz
UXP-df23f78ad16b40c244f518dba28a8555d61bdd0c.zip
Bug 1309147 - Part 3: Implement the support for CEReactions in Codegen.
Tag UXP Issue #1344
Diffstat (limited to 'dom/bindings/BindingUtils.h')
-rw-r--r--dom/bindings/BindingUtils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h
index 2563c5fee..d600acce8 100644
--- a/dom/bindings/BindingUtils.h
+++ b/dom/bindings/BindingUtils.h
@@ -50,6 +50,7 @@ namespace mozilla {
enum UseCounter : int16_t;
namespace dom {
+class CustomElementReactionsStack;
template<typename KeyType, typename ValueType> class Record;
nsresult
@@ -3421,6 +3422,12 @@ bool
GetDesiredProto(JSContext* aCx, const JS::CallArgs& aCallArgs,
JS::MutableHandle<JSObject*> aDesiredProto);
+// Get the CustomElementReactionsStack for the docgroup of the global
+// of the underlying object of aObj. This can be null if aObj can't
+// be CheckUnwrapped, or if the global of the result has no docgroup
+// (e.g. because it's not a Window global).
+CustomElementReactionsStack*
+GetCustomElementReactionsStack(JS::Handle<JSObject*> aObj);
// This function is expected to be called from the constructor function for an
// HTML element interface; the global/callargs need to be whatever was passed to
// that constructor function.