2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 #include "JSHTMLBodyElement.h"
24 #include "EventListener.h"
25 #include "HTMLBodyElement.h"
26 #include "HTMLNames.h"
27 #include "JSEventListener.h"
29 #include <runtime/JSString.h>
30 #include <wtf/GetPtr.h>
36 ASSERT_CLASS_FITS_IN_CELL(JSHTMLBodyElement);
40 #define THUNK_GENERATOR(generator) , generator
42 #define THUNK_GENERATOR(generator)
45 #define INTRINSIC(intrinsic) , intrinsic
47 #define INTRINSIC(intrinsic)
50 static const HashTableValue JSHTMLBodyElementTableValues[] =
52 { "aLink", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementALink), (intptr_t)setJSHTMLBodyElementALink THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
53 { "background", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementBackground), (intptr_t)setJSHTMLBodyElementBackground THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
54 { "bgColor", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementBgColor), (intptr_t)setJSHTMLBodyElementBgColor THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
55 { "link", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementLink), (intptr_t)setJSHTMLBodyElementLink THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
56 { "text", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementText), (intptr_t)setJSHTMLBodyElementText THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
57 { "vLink", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementVLink), (intptr_t)setJSHTMLBodyElementVLink THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
58 { "onbeforeunload", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnbeforeunload), (intptr_t)setJSHTMLBodyElementOnbeforeunload THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
59 { "onhashchange", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnhashchange), (intptr_t)setJSHTMLBodyElementOnhashchange THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
60 { "onmessage", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnmessage), (intptr_t)setJSHTMLBodyElementOnmessage THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
61 { "onoffline", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnoffline), (intptr_t)setJSHTMLBodyElementOnoffline THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
62 { "ononline", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnonline), (intptr_t)setJSHTMLBodyElementOnonline THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
63 { "onpopstate", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnpopstate), (intptr_t)setJSHTMLBodyElementOnpopstate THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
64 { "onresize", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnresize), (intptr_t)setJSHTMLBodyElementOnresize THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
65 { "onstorage", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnstorage), (intptr_t)setJSHTMLBodyElementOnstorage THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
66 { "onunload", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnunload), (intptr_t)setJSHTMLBodyElementOnunload THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
67 #if ENABLE(ORIENTATION_EVENTS)
68 { "onorientationchange", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnorientationchange), (intptr_t)setJSHTMLBodyElementOnorientationchange THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
70 { "onblur", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnblur), (intptr_t)setJSHTMLBodyElementOnblur THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
71 { "onerror", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnerror), (intptr_t)setJSHTMLBodyElementOnerror THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
72 { "onfocus", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnfocus), (intptr_t)setJSHTMLBodyElementOnfocus THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
73 { "onload", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnload), (intptr_t)setJSHTMLBodyElementOnload THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
74 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
75 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
78 #undef THUNK_GENERATOR
79 static const HashTable JSHTMLBodyElementTable = { 64, 63, JSHTMLBodyElementTableValues, 0 };
80 /* Hash table for constructor */
82 #define THUNK_GENERATOR(generator) , generator
84 #define THUNK_GENERATOR(generator)
87 #define INTRINSIC(intrinsic) , intrinsic
89 #define INTRINSIC(intrinsic)
92 static const HashTableValue JSHTMLBodyElementConstructorTableValues[] =
94 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
97 #undef THUNK_GENERATOR
98 static const HashTable JSHTMLBodyElementConstructorTable = { 1, 0, JSHTMLBodyElementConstructorTableValues, 0 };
99 const ClassInfo JSHTMLBodyElementConstructor::s_info = { "HTMLBodyElementConstructor", &DOMConstructorObject::s_info, &JSHTMLBodyElementConstructorTable, 0, CREATE_METHOD_TABLE(JSHTMLBodyElementConstructor) };
101 JSHTMLBodyElementConstructor::JSHTMLBodyElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
102 : DOMConstructorObject(structure, globalObject)
106 void JSHTMLBodyElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
108 Base::finishCreation(exec->globalData());
109 ASSERT(inherits(&s_info));
110 putDirect(exec->globalData(), exec->propertyNames().prototype, JSHTMLBodyElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
113 bool JSHTMLBodyElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
115 return getStaticValueSlot<JSHTMLBodyElementConstructor, JSDOMWrapper>(exec, &JSHTMLBodyElementConstructorTable, static_cast<JSHTMLBodyElementConstructor*>(cell), propertyName, slot);
118 bool JSHTMLBodyElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
120 return getStaticValueDescriptor<JSHTMLBodyElementConstructor, JSDOMWrapper>(exec, &JSHTMLBodyElementConstructorTable, static_cast<JSHTMLBodyElementConstructor*>(object), propertyName, descriptor);
123 /* Hash table for prototype */
125 #define THUNK_GENERATOR(generator) , generator
127 #define THUNK_GENERATOR(generator)
130 #define INTRINSIC(intrinsic) , intrinsic
132 #define INTRINSIC(intrinsic)
135 static const HashTableValue JSHTMLBodyElementPrototypeTableValues[] =
137 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
140 #undef THUNK_GENERATOR
141 static const HashTable JSHTMLBodyElementPrototypeTable = { 1, 0, JSHTMLBodyElementPrototypeTableValues, 0 };
142 const ClassInfo JSHTMLBodyElementPrototype::s_info = { "HTMLBodyElementPrototype", &JSC::JSNonFinalObject::s_info, &JSHTMLBodyElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSHTMLBodyElementPrototype) };
144 JSObject* JSHTMLBodyElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
146 return getDOMPrototype<JSHTMLBodyElement>(exec, globalObject);
149 const ClassInfo JSHTMLBodyElement::s_info = { "HTMLBodyElement", &JSHTMLElement::s_info, &JSHTMLBodyElementTable, 0 , CREATE_METHOD_TABLE(JSHTMLBodyElement) };
151 JSHTMLBodyElement::JSHTMLBodyElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLBodyElement> impl)
152 : JSHTMLElement(structure, globalObject, impl)
156 void JSHTMLBodyElement::finishCreation(JSGlobalData& globalData)
158 Base::finishCreation(globalData);
159 ASSERT(inherits(&s_info));
162 JSObject* JSHTMLBodyElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
164 return JSHTMLBodyElementPrototype::create(exec->globalData(), globalObject, JSHTMLBodyElementPrototype::createStructure(exec->globalData(), globalObject, JSHTMLElementPrototype::self(exec, globalObject)));
167 bool JSHTMLBodyElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
169 JSHTMLBodyElement* thisObject = jsCast<JSHTMLBodyElement*>(cell);
170 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
171 return getStaticValueSlot<JSHTMLBodyElement, Base>(exec, &JSHTMLBodyElementTable, thisObject, propertyName, slot);
174 bool JSHTMLBodyElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
176 JSHTMLBodyElement* thisObject = jsCast<JSHTMLBodyElement*>(object);
177 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
178 return getStaticValueDescriptor<JSHTMLBodyElement, Base>(exec, &JSHTMLBodyElementTable, thisObject, propertyName, descriptor);
181 JSValue jsHTMLBodyElementALink(ExecState* exec, JSValue slotBase, const Identifier&)
183 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
185 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
186 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::alinkAttr));
191 JSValue jsHTMLBodyElementBackground(ExecState* exec, JSValue slotBase, const Identifier&)
193 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
195 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
196 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::backgroundAttr));
201 JSValue jsHTMLBodyElementBgColor(ExecState* exec, JSValue slotBase, const Identifier&)
203 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
205 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
206 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::bgcolorAttr));
211 JSValue jsHTMLBodyElementLink(ExecState* exec, JSValue slotBase, const Identifier&)
213 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
215 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
216 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::linkAttr));
221 JSValue jsHTMLBodyElementText(ExecState* exec, JSValue slotBase, const Identifier&)
223 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
225 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
226 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::textAttr));
231 JSValue jsHTMLBodyElementVLink(ExecState* exec, JSValue slotBase, const Identifier&)
233 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
235 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
236 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::vlinkAttr));
241 JSValue jsHTMLBodyElementOnbeforeunload(ExecState* exec, JSValue slotBase, const Identifier&)
243 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
245 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
246 if (EventListener* listener = imp->onbeforeunload()) {
247 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
248 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
256 JSValue jsHTMLBodyElementOnhashchange(ExecState* exec, JSValue slotBase, const Identifier&)
258 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
260 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
261 if (EventListener* listener = imp->onhashchange()) {
262 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
263 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
271 JSValue jsHTMLBodyElementOnmessage(ExecState* exec, JSValue slotBase, const Identifier&)
273 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
275 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
276 if (EventListener* listener = imp->onmessage()) {
277 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
278 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
286 JSValue jsHTMLBodyElementOnoffline(ExecState* exec, JSValue slotBase, const Identifier&)
288 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
290 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
291 if (EventListener* listener = imp->onoffline()) {
292 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
293 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
301 JSValue jsHTMLBodyElementOnonline(ExecState* exec, JSValue slotBase, const Identifier&)
303 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
305 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
306 if (EventListener* listener = imp->ononline()) {
307 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
308 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
316 JSValue jsHTMLBodyElementOnpopstate(ExecState* exec, JSValue slotBase, const Identifier&)
318 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
320 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
321 if (EventListener* listener = imp->onpopstate()) {
322 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
323 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
331 JSValue jsHTMLBodyElementOnresize(ExecState* exec, JSValue slotBase, const Identifier&)
333 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
335 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
336 if (EventListener* listener = imp->onresize()) {
337 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
338 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
346 JSValue jsHTMLBodyElementOnstorage(ExecState* exec, JSValue slotBase, const Identifier&)
348 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
350 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
351 if (EventListener* listener = imp->onstorage()) {
352 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
353 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
361 JSValue jsHTMLBodyElementOnunload(ExecState* exec, JSValue slotBase, const Identifier&)
363 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
365 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
366 if (EventListener* listener = imp->onunload()) {
367 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
368 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
376 #if ENABLE(ORIENTATION_EVENTS)
377 JSValue jsHTMLBodyElementOnorientationchange(ExecState* exec, JSValue slotBase, const Identifier&)
379 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
381 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
382 if (EventListener* listener = imp->onorientationchange()) {
383 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
384 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
393 JSValue jsHTMLBodyElementOnblur(ExecState* exec, JSValue slotBase, const Identifier&)
395 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
397 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
398 if (EventListener* listener = imp->onblur()) {
399 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
400 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
408 JSValue jsHTMLBodyElementOnerror(ExecState* exec, JSValue slotBase, const Identifier&)
410 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
412 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
413 if (EventListener* listener = imp->onerror()) {
414 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
415 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
423 JSValue jsHTMLBodyElementOnfocus(ExecState* exec, JSValue slotBase, const Identifier&)
425 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
427 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
428 if (EventListener* listener = imp->onfocus()) {
429 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
430 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
438 JSValue jsHTMLBodyElementOnload(ExecState* exec, JSValue slotBase, const Identifier&)
440 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
442 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
443 if (EventListener* listener = imp->onload()) {
444 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) {
445 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext()))
453 JSValue jsHTMLBodyElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
455 JSHTMLBodyElement* domObject = static_cast<JSHTMLBodyElement*>(asObject(slotBase));
456 return JSHTMLBodyElement::getConstructor(exec, domObject->globalObject());
459 void JSHTMLBodyElement::put(JSCell* cell, ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
461 JSHTMLBodyElement* thisObject = jsCast<JSHTMLBodyElement*>(cell);
462 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
463 lookupPut<JSHTMLBodyElement, Base>(exec, propertyName, value, &JSHTMLBodyElementTable, thisObject, slot);
466 void setJSHTMLBodyElementALink(ExecState* exec, JSObject* thisObject, JSValue value)
468 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
469 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
470 imp->setAttribute(WebCore::HTMLNames::alinkAttr, valueToStringWithNullCheck(exec, value));
474 void setJSHTMLBodyElementBackground(ExecState* exec, JSObject* thisObject, JSValue value)
476 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
477 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
478 imp->setAttribute(WebCore::HTMLNames::backgroundAttr, valueToStringWithNullCheck(exec, value));
482 void setJSHTMLBodyElementBgColor(ExecState* exec, JSObject* thisObject, JSValue value)
484 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
485 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
486 imp->setAttribute(WebCore::HTMLNames::bgcolorAttr, valueToStringWithNullCheck(exec, value));
490 void setJSHTMLBodyElementLink(ExecState* exec, JSObject* thisObject, JSValue value)
492 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
493 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
494 imp->setAttribute(WebCore::HTMLNames::linkAttr, valueToStringWithNullCheck(exec, value));
498 void setJSHTMLBodyElementText(ExecState* exec, JSObject* thisObject, JSValue value)
500 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
501 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
502 imp->setAttribute(WebCore::HTMLNames::textAttr, valueToStringWithNullCheck(exec, value));
506 void setJSHTMLBodyElementVLink(ExecState* exec, JSObject* thisObject, JSValue value)
508 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
509 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
510 imp->setAttribute(WebCore::HTMLNames::vlinkAttr, valueToStringWithNullCheck(exec, value));
514 void setJSHTMLBodyElementOnbeforeunload(ExecState* exec, JSObject* thisObject, JSValue value)
517 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
518 JSDOMGlobalObject* globalObject = castedThis->globalObject();
519 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
520 imp->setOnbeforeunload(createJSAttributeEventListener(exec, value, globalObject));
524 void setJSHTMLBodyElementOnhashchange(ExecState* exec, JSObject* thisObject, JSValue value)
527 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
528 JSDOMGlobalObject* globalObject = castedThis->globalObject();
529 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
530 imp->setOnhashchange(createJSAttributeEventListener(exec, value, globalObject));
534 void setJSHTMLBodyElementOnmessage(ExecState* exec, JSObject* thisObject, JSValue value)
537 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
538 JSDOMGlobalObject* globalObject = castedThis->globalObject();
539 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
540 imp->setOnmessage(createJSAttributeEventListener(exec, value, globalObject));
544 void setJSHTMLBodyElementOnoffline(ExecState* exec, JSObject* thisObject, JSValue value)
547 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
548 JSDOMGlobalObject* globalObject = castedThis->globalObject();
549 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
550 imp->setOnoffline(createJSAttributeEventListener(exec, value, globalObject));
554 void setJSHTMLBodyElementOnonline(ExecState* exec, JSObject* thisObject, JSValue value)
557 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
558 JSDOMGlobalObject* globalObject = castedThis->globalObject();
559 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
560 imp->setOnonline(createJSAttributeEventListener(exec, value, globalObject));
564 void setJSHTMLBodyElementOnpopstate(ExecState* exec, JSObject* thisObject, JSValue value)
567 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
568 JSDOMGlobalObject* globalObject = castedThis->globalObject();
569 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
570 imp->setOnpopstate(createJSAttributeEventListener(exec, value, globalObject));
574 void setJSHTMLBodyElementOnresize(ExecState* exec, JSObject* thisObject, JSValue value)
577 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
578 JSDOMGlobalObject* globalObject = castedThis->globalObject();
579 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
580 imp->setOnresize(createJSAttributeEventListener(exec, value, globalObject));
584 void setJSHTMLBodyElementOnstorage(ExecState* exec, JSObject* thisObject, JSValue value)
587 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
588 JSDOMGlobalObject* globalObject = castedThis->globalObject();
589 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
590 imp->setOnstorage(createJSAttributeEventListener(exec, value, globalObject));
594 void setJSHTMLBodyElementOnunload(ExecState* exec, JSObject* thisObject, JSValue value)
597 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
598 JSDOMGlobalObject* globalObject = castedThis->globalObject();
599 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
600 imp->setOnunload(createJSAttributeEventListener(exec, value, globalObject));
604 #if ENABLE(ORIENTATION_EVENTS)
605 void setJSHTMLBodyElementOnorientationchange(ExecState* exec, JSObject* thisObject, JSValue value)
608 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
609 JSDOMGlobalObject* globalObject = castedThis->globalObject();
610 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
611 imp->setOnorientationchange(createJSAttributeEventListener(exec, value, globalObject));
616 void setJSHTMLBodyElementOnblur(ExecState* exec, JSObject* thisObject, JSValue value)
619 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
620 JSDOMGlobalObject* globalObject = castedThis->globalObject();
621 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
622 imp->setOnblur(createJSAttributeEventListener(exec, value, globalObject));
626 void setJSHTMLBodyElementOnerror(ExecState* exec, JSObject* thisObject, JSValue value)
629 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
630 JSDOMGlobalObject* globalObject = castedThis->globalObject();
631 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
632 imp->setOnerror(createJSAttributeEventListener(exec, value, globalObject));
636 void setJSHTMLBodyElementOnfocus(ExecState* exec, JSObject* thisObject, JSValue value)
639 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
640 JSDOMGlobalObject* globalObject = castedThis->globalObject();
641 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
642 imp->setOnfocus(createJSAttributeEventListener(exec, value, globalObject));
646 void setJSHTMLBodyElementOnload(ExecState* exec, JSObject* thisObject, JSValue value)
649 JSHTMLBodyElement* castedThis = static_cast<JSHTMLBodyElement*>(thisObject);
650 JSDOMGlobalObject* globalObject = castedThis->globalObject();
651 HTMLBodyElement* imp = static_cast<HTMLBodyElement*>(castedThis->impl());
652 imp->setOnload(createJSAttributeEventListener(exec, value, globalObject));
656 JSValue JSHTMLBodyElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
658 return getDOMConstructor<JSHTMLBodyElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));