diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-01 11:45:44 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-16 14:31:31 +0100 |
commit | d52ae5e50da67dc82944e6826cc7867c782fc96f (patch) | |
tree | b3974c1901c69c3e329009f8d7fd626c29cfea49 | |
parent | 48c8b0a4b9491ca0b582a0fa71665cdf529a4600 (diff) | |
download | netsurf-d52ae5e50da67dc82944e6826cc7867c782fc96f.tar.gz |
modify htmlelement binding construction calls to be multiple interface compatible
-rw-r--r-- | javascript/jsapi/dom.bnd | 2 | ||||
-rw-r--r-- | javascript/jsapi/htmlcollection.bnd | 4 | ||||
-rw-r--r-- | javascript/jsapi/htmldocument.bnd | 10 | ||||
-rw-r--r-- | javascript/jsapi/htmlelement.bnd | 4 | ||||
-rw-r--r-- | javascript/jsapi/nodelist.bnd | 4 |
5 files changed, 14 insertions, 10 deletions
diff --git a/javascript/jsapi/dom.bnd b/javascript/jsapi/dom.bnd index 3fc7f9ed1..b0af00a10 100644 --- a/javascript/jsapi/dom.bnd +++ b/javascript/jsapi/dom.bnd @@ -155,7 +155,7 @@ operation appendChild %{ } switch (node_type) { case DOM_ELEMENT_NODE: - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)result, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, (dom_element *)result, private->htmlc); break; case DOM_TEXT_NODE: diff --git a/javascript/jsapi/htmlcollection.bnd b/javascript/jsapi/htmlcollection.bnd index b75a1b137..0c34822d8 100644 --- a/javascript/jsapi/htmlcollection.bnd +++ b/javascript/jsapi/htmlcollection.bnd @@ -60,7 +60,7 @@ operation item %{ } if (domnode != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)domnode, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, (dom_element *)domnode, private->htmlc); } %} @@ -80,7 +80,7 @@ operation namedItem %{ } if (domnode != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)domnode, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, (dom_element *)domnode, private->htmlc); } %} diff --git a/javascript/jsapi/htmldocument.bnd b/javascript/jsapi/htmldocument.bnd index f6fe73089..6a0f11b8f 100644 --- a/javascript/jsapi/htmldocument.bnd +++ b/javascript/jsapi/htmldocument.bnd @@ -144,7 +144,7 @@ getter documentElement %{ } if (element != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, element, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, element, private->htmlc); } %} @@ -162,7 +162,7 @@ getter head %{ if (element != NULL) { head = libdom_find_first_element(element, corestring_lwc_head) ; if (head != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)head, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, (dom_element *)head, private->htmlc); } dom_node_unref(element); } @@ -184,7 +184,7 @@ getter body %{ if (element != NULL) { body = libdom_find_first_element(element, corestring_lwc_body) ; if (body != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)body, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, (dom_element *)body, private->htmlc); } dom_node_unref(element); } @@ -210,7 +210,7 @@ operation getElementById %{ } if (element != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, element, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, element, private->htmlc); } %} @@ -337,7 +337,7 @@ operation createElement %{ return JS_FALSE; } - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, element, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, localName, NULL, element, private->htmlc); } JSDBG("returning jsobject %p",jsret); diff --git a/javascript/jsapi/htmlelement.bnd b/javascript/jsapi/htmlelement.bnd index 920a6f75d..ad1291e9d 100644 --- a/javascript/jsapi/htmlelement.bnd +++ b/javascript/jsapi/htmlelement.bnd @@ -324,6 +324,7 @@ getter firstElementChild %{ /* found it */ jsret = jsapi_new_HTMLElement(cx, NULL, + "HTMLElement", NULL, (dom_element *)element, private->htmlc); @@ -360,6 +361,7 @@ getter lastElementChild %{ /* found it */ jsret = jsapi_new_HTMLElement(cx, NULL, + "HTMLElement", NULL, (dom_element *)element, private->htmlc); @@ -394,6 +396,7 @@ getter previousElementSibling %{ /* found it */ jsret = jsapi_new_HTMLElement(cx, NULL, + "HTMLElement", NULL, (dom_element *)element, private->htmlc); @@ -427,6 +430,7 @@ getter nextElementSibling %{ /* found it */ jsret = jsapi_new_HTMLElement(cx, NULL, + "HTMLElement", NULL, (dom_element *)element, private->htmlc); diff --git a/javascript/jsapi/nodelist.bnd b/javascript/jsapi/nodelist.bnd index f2a19f3e2..e0db42710 100644 --- a/javascript/jsapi/nodelist.bnd +++ b/javascript/jsapi/nodelist.bnd @@ -64,7 +64,7 @@ api getproperty %{ } if (domnode != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)domnode, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, (dom_element *)domnode, private->htmlc); JSDBG("return object:%p", jsret); @@ -92,7 +92,7 @@ operation item %{ } if (domnode != NULL) { - jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)domnode, private->htmlc); + jsret = jsapi_new_HTMLElement(cx, NULL, "HTMLElement", NULL, (dom_element *)domnode, private->htmlc); } %} |