summaryrefslogtreecommitdiffstats
path: root/dom/bindings/BindingUtils.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-02 21:25:47 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:09 -0500
commit5222f6e9daa4cb74b404f769b23510b3d600efd9 (patch)
treee00a760b5b662dcfb35e2849ea1e9d83c85617e2 /dom/bindings/BindingUtils.h
parent244277a3fa428b70ba46cf611dbe1905733515eb (diff)
downloadUXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar.gz
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar.lz
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar.xz
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.zip
Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements;
Tag UXP Issue #1344
Diffstat (limited to 'dom/bindings/BindingUtils.h')
-rw-r--r--dom/bindings/BindingUtils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h
index 5cab835b3..2563c5fee 100644
--- a/dom/bindings/BindingUtils.h
+++ b/dom/bindings/BindingUtils.h
@@ -42,6 +42,7 @@
#include "nsWrapperCacheInlines.h"
+class nsGenericHTMLElement;
class nsIJSID;
namespace mozilla {
@@ -3420,6 +3421,13 @@ bool
GetDesiredProto(JSContext* aCx, const JS::CallArgs& aCallArgs,
JS::MutableHandle<JSObject*> aDesiredProto);
+// 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.
+already_AddRefed<nsGenericHTMLElement>
+CreateHTMLElement(const GlobalObject& aGlobal, const JS::CallArgs& aCallArgs,
+ ErrorResult& aRv);
+
void
SetDocumentAndPageUseCounter(JSContext* aCx, JSObject* aObject,
UseCounter aUseCounter);