summaryrefslogtreecommitdiff
path: root/javascript/jsapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/jsapi.h')
-rw-r--r--javascript/jsapi.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/javascript/jsapi.h b/javascript/jsapi.h
index 98b7d0228..2c10d02ce 100644
--- a/javascript/jsapi.h
+++ b/javascript/jsapi.h
@@ -29,6 +29,8 @@
#include "mozjs/jsapi.h"
#endif
+#include "render/html_internal.h"
+
#if JS_VERSION <= 180
#include <string.h>
@@ -136,9 +138,6 @@ JS_NewCompartmentAndGlobalObject(JSContext *cx,
#endif
-typedef struct dom_element dom_element;
-typedef struct html_content html_content;
-
/** Create a new javascript window object
*
* @param cx The javascript context.