diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSNode.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSNode.cpp | 893 |
1 files changed, 3 insertions, 890 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSNode.cpp b/src/3rdparty/webkit/WebCore/generated/JSNode.cpp index 6cb55ee..fda843c 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSNode.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSNode.cpp @@ -19,21 +19,14 @@ */ #include "config.h" - #include "JSNode.h" -#include <wtf/GetPtr.h> - #include "Document.h" #include "Element.h" #include "Event.h" -#include "EventListener.h" -#include "Frame.h" -#include "JSDOMGlobalObject.h" #include "JSDocument.h" #include "JSElement.h" #include "JSEvent.h" -#include "JSEventListener.h" #include "JSNamedNodeMap.h" #include "JSNode.h" #include "JSNodeList.h" @@ -43,9 +36,9 @@ #include "Node.h" #include "NodeList.h" #include "RegisteredEventListener.h" - #include <runtime/Error.h> #include <runtime/JSNumberCell.h> +#include <wtf/GetPtr.h> using namespace JSC; @@ -55,7 +48,7 @@ ASSERT_CLASS_FITS_IN_CELL(JSNode); /* Hash table */ -static const HashTableValue JSNodeTableValues[59] = +static const HashTableValue JSNodeTableValues[19] = { { "nodeName", DontDelete|ReadOnly, (intptr_t)jsNodeNodeName, (intptr_t)0 }, { "nodeValue", DontDelete, (intptr_t)jsNodeNodeValue, (intptr_t)setJSNodeNodeValue }, @@ -74,46 +67,6 @@ static const HashTableValue JSNodeTableValues[59] = { "baseURI", DontDelete|ReadOnly, (intptr_t)jsNodeBaseURI, (intptr_t)0 }, { "textContent", DontDelete, (intptr_t)jsNodeTextContent, (intptr_t)setJSNodeTextContent }, { "parentElement", DontDelete|ReadOnly, (intptr_t)jsNodeParentElement, (intptr_t)0 }, - { "onabort", DontDelete|DontEnum, (intptr_t)jsNodeOnabort, (intptr_t)setJSNodeOnabort }, - { "onblur", DontDelete|DontEnum, (intptr_t)jsNodeOnblur, (intptr_t)setJSNodeOnblur }, - { "onchange", DontDelete|DontEnum, (intptr_t)jsNodeOnchange, (intptr_t)setJSNodeOnchange }, - { "onclick", DontDelete|DontEnum, (intptr_t)jsNodeOnclick, (intptr_t)setJSNodeOnclick }, - { "oncontextmenu", DontDelete|DontEnum, (intptr_t)jsNodeOncontextmenu, (intptr_t)setJSNodeOncontextmenu }, - { "ondblclick", DontDelete|DontEnum, (intptr_t)jsNodeOndblclick, (intptr_t)setJSNodeOndblclick }, - { "onerror", DontDelete|DontEnum, (intptr_t)jsNodeOnerror, (intptr_t)setJSNodeOnerror }, - { "onfocus", DontDelete|DontEnum, (intptr_t)jsNodeOnfocus, (intptr_t)setJSNodeOnfocus }, - { "oninput", DontDelete|DontEnum, (intptr_t)jsNodeOninput, (intptr_t)setJSNodeOninput }, - { "onkeydown", DontDelete|DontEnum, (intptr_t)jsNodeOnkeydown, (intptr_t)setJSNodeOnkeydown }, - { "onkeypress", DontDelete|DontEnum, (intptr_t)jsNodeOnkeypress, (intptr_t)setJSNodeOnkeypress }, - { "onkeyup", DontDelete|DontEnum, (intptr_t)jsNodeOnkeyup, (intptr_t)setJSNodeOnkeyup }, - { "onload", DontDelete|DontEnum, (intptr_t)jsNodeOnload, (intptr_t)setJSNodeOnload }, - { "onmousedown", DontDelete|DontEnum, (intptr_t)jsNodeOnmousedown, (intptr_t)setJSNodeOnmousedown }, - { "onmousemove", DontDelete|DontEnum, (intptr_t)jsNodeOnmousemove, (intptr_t)setJSNodeOnmousemove }, - { "onmouseout", DontDelete|DontEnum, (intptr_t)jsNodeOnmouseout, (intptr_t)setJSNodeOnmouseout }, - { "onmouseover", DontDelete|DontEnum, (intptr_t)jsNodeOnmouseover, (intptr_t)setJSNodeOnmouseover }, - { "onmouseup", DontDelete|DontEnum, (intptr_t)jsNodeOnmouseup, (intptr_t)setJSNodeOnmouseup }, - { "onmousewheel", DontDelete|DontEnum, (intptr_t)jsNodeOnmousewheel, (intptr_t)setJSNodeOnmousewheel }, - { "onbeforecut", DontDelete|DontEnum, (intptr_t)jsNodeOnbeforecut, (intptr_t)setJSNodeOnbeforecut }, - { "oncut", DontDelete|DontEnum, (intptr_t)jsNodeOncut, (intptr_t)setJSNodeOncut }, - { "onbeforecopy", DontDelete|DontEnum, (intptr_t)jsNodeOnbeforecopy, (intptr_t)setJSNodeOnbeforecopy }, - { "oncopy", DontDelete|DontEnum, (intptr_t)jsNodeOncopy, (intptr_t)setJSNodeOncopy }, - { "onbeforepaste", DontDelete|DontEnum, (intptr_t)jsNodeOnbeforepaste, (intptr_t)setJSNodeOnbeforepaste }, - { "onpaste", DontDelete|DontEnum, (intptr_t)jsNodeOnpaste, (intptr_t)setJSNodeOnpaste }, - { "ondragenter", DontDelete|DontEnum, (intptr_t)jsNodeOndragenter, (intptr_t)setJSNodeOndragenter }, - { "ondragover", DontDelete|DontEnum, (intptr_t)jsNodeOndragover, (intptr_t)setJSNodeOndragover }, - { "ondragleave", DontDelete|DontEnum, (intptr_t)jsNodeOndragleave, (intptr_t)setJSNodeOndragleave }, - { "ondrop", DontDelete|DontEnum, (intptr_t)jsNodeOndrop, (intptr_t)setJSNodeOndrop }, - { "ondragstart", DontDelete|DontEnum, (intptr_t)jsNodeOndragstart, (intptr_t)setJSNodeOndragstart }, - { "ondrag", DontDelete|DontEnum, (intptr_t)jsNodeOndrag, (intptr_t)setJSNodeOndrag }, - { "ondragend", DontDelete|DontEnum, (intptr_t)jsNodeOndragend, (intptr_t)setJSNodeOndragend }, - { "onreset", DontDelete|DontEnum, (intptr_t)jsNodeOnreset, (intptr_t)setJSNodeOnreset }, - { "onresize", DontDelete|DontEnum, (intptr_t)jsNodeOnresize, (intptr_t)setJSNodeOnresize }, - { "onscroll", DontDelete|DontEnum, (intptr_t)jsNodeOnscroll, (intptr_t)setJSNodeOnscroll }, - { "onsearch", DontDelete|DontEnum, (intptr_t)jsNodeOnsearch, (intptr_t)setJSNodeOnsearch }, - { "onselect", DontDelete|DontEnum, (intptr_t)jsNodeOnselect, (intptr_t)setJSNodeOnselect }, - { "onselectstart", DontDelete|DontEnum, (intptr_t)jsNodeOnselectstart, (intptr_t)setJSNodeOnselectstart }, - { "onsubmit", DontDelete|DontEnum, (intptr_t)jsNodeOnsubmit, (intptr_t)setJSNodeOnsubmit }, - { "onunload", DontDelete|DontEnum, (intptr_t)jsNodeOnunload, (intptr_t)setJSNodeOnunload }, { "constructor", DontEnum|ReadOnly, (intptr_t)jsNodeConstructor, (intptr_t)0 }, { 0, 0, 0, 0 } }; @@ -122,7 +75,7 @@ static const HashTable JSNodeTable = #if ENABLE(PERFECT_HASH_SIZE) { 4095, JSNodeTableValues, 0 }; #else - { 140, 127, JSNodeTableValues, 0 }; + { 68, 63, JSNodeTableValues, 0 }; #endif /* Hash table for constructor */ @@ -381,446 +334,6 @@ JSValue jsNodeParentElement(ExecState* exec, const Identifier&, const PropertySl return toJS(exec, WTF::getPtr(imp->parentElement())); } -JSValue jsNodeOnabort(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onabort()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnblur(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onblur()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnchange(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onchange()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnclick(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onclick()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOncontextmenu(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->oncontextmenu()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndblclick(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondblclick()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnerror(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onerror()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnfocus(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onfocus()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOninput(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->oninput()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnkeydown(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onkeydown()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnkeypress(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onkeypress()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnkeyup(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onkeyup()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnload(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onload()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnmousedown(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onmousedown()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnmousemove(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onmousemove()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnmouseout(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onmouseout()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnmouseover(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onmouseover()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnmouseup(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onmouseup()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnmousewheel(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onmousewheel()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnbeforecut(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onbeforecut()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOncut(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->oncut()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnbeforecopy(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onbeforecopy()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOncopy(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->oncopy()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnbeforepaste(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onbeforepaste()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnpaste(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onpaste()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndragenter(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondragenter()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndragover(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondragover()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndragleave(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondragleave()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndrop(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondrop()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndragstart(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondragstart()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndrag(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondrag()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOndragend(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->ondragend()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnreset(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onreset()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnresize(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onresize()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnscroll(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onscroll()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnsearch(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onsearch()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnselect(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onselect()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnselectstart(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onselectstart()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnsubmit(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onsubmit()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - -JSValue jsNodeOnunload(ExecState* exec, const Identifier&, const PropertySlot& slot) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(asObject(slot.slotBase()))->impl()); - if (EventListener* listener = imp->onunload()) { - if (JSObject* jsFunction = listener->jsFunction()) - return jsFunction; - } - return jsNull(); -} - JSValue jsNodeConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) { return static_cast<JSNode*>(asObject(slot.slotBase()))->getConstructor(exec); @@ -854,406 +367,6 @@ void setJSNodeTextContent(ExecState* exec, JSObject* thisObject, JSValue value) setDOMException(exec, ec); } -void setJSNodeOnabort(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnabort(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnblur(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnblur(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnchange(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnchange(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnclick(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnclick(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOncontextmenu(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOncontextmenu(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndblclick(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndblclick(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnerror(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnerror(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnfocus(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnfocus(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOninput(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOninput(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnkeydown(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnkeydown(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnkeypress(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnkeypress(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnkeyup(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnkeyup(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnload(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnload(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnmousedown(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnmousedown(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnmousemove(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnmousemove(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnmouseout(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnmouseout(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnmouseover(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnmouseover(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnmouseup(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnmouseup(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnmousewheel(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnmousewheel(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnbeforecut(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnbeforecut(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOncut(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOncut(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnbeforecopy(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnbeforecopy(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOncopy(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOncopy(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnbeforepaste(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnbeforepaste(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnpaste(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnpaste(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndragenter(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndragenter(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndragover(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndragover(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndragleave(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndragleave(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndrop(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndrop(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndragstart(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndragstart(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndrag(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndrag(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOndragend(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOndragend(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnreset(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnreset(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnresize(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnresize(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnscroll(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnscroll(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnsearch(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnsearch(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnselect(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnselect(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnselectstart(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnselectstart(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnsubmit(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnsubmit(globalObject->createJSAttributeEventListener(value)); -} - -void setJSNodeOnunload(ExecState* exec, JSObject* thisObject, JSValue value) -{ - UNUSED_PARAM(exec); - Node* imp = static_cast<Node*>(static_cast<JSNode*>(thisObject)->impl()); - JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(imp->scriptExecutionContext()); - if (!globalObject) - return; - imp->setOnunload(globalObject->createJSAttributeEventListener(value)); -} - JSValue JSNode::getConstructor(ExecState* exec) { return getDOMConstructor<JSNodeConstructor>(exec); |