1 | /* |
2 | This file is part of the WebKit open source project. |
3 | This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
4 | |
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. |
9 | |
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. |
14 | |
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. |
19 | */ |
20 | |
21 | #include "config.h" |
22 | #include "JSHTMLBodyElement.h" |
23 | |
24 | #include "CustomElementReactionQueue.h" |
25 | #include "EventNames.h" |
26 | #include "HTMLNames.h" |
27 | #include "JSDOMAttribute.h" |
28 | #include "JSDOMBinding.h" |
29 | #include "JSDOMConstructorNotConstructable.h" |
30 | #include "JSDOMConvertStrings.h" |
31 | #include "JSDOMExceptionHandling.h" |
32 | #include "JSDOMWrapperCache.h" |
33 | #include "JSEventListener.h" |
34 | #include "ScriptExecutionContext.h" |
35 | #include <JavaScriptCore/HeapSnapshotBuilder.h> |
36 | #include <JavaScriptCore/JSCInlines.h> |
37 | #include <wtf/GetPtr.h> |
38 | #include <wtf/PointerPreparations.h> |
39 | #include <wtf/URL.h> |
40 | |
41 | |
42 | namespace WebCore { |
43 | using namespace JSC; |
44 | |
45 | // Attributes |
46 | |
47 | JSC::EncodedJSValue jsHTMLBodyElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
48 | bool setJSHTMLBodyElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
49 | JSC::EncodedJSValue jsHTMLBodyElementALink(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
50 | bool setJSHTMLBodyElementALink(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
51 | JSC::EncodedJSValue jsHTMLBodyElementBackground(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
52 | bool setJSHTMLBodyElementBackground(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
53 | JSC::EncodedJSValue jsHTMLBodyElementBgColor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
54 | bool setJSHTMLBodyElementBgColor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
55 | JSC::EncodedJSValue jsHTMLBodyElementLink(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
56 | bool setJSHTMLBodyElementLink(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
57 | JSC::EncodedJSValue jsHTMLBodyElementText(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
58 | bool setJSHTMLBodyElementText(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
59 | JSC::EncodedJSValue jsHTMLBodyElementVLink(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
60 | bool setJSHTMLBodyElementVLink(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
61 | JSC::EncodedJSValue jsHTMLBodyElementOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
62 | bool setJSHTMLBodyElementOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
63 | JSC::EncodedJSValue jsHTMLBodyElementOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
64 | bool setJSHTMLBodyElementOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
65 | JSC::EncodedJSValue jsHTMLBodyElementOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
66 | bool setJSHTMLBodyElementOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
67 | JSC::EncodedJSValue jsHTMLBodyElementOnfocusin(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
68 | bool setJSHTMLBodyElementOnfocusin(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
69 | JSC::EncodedJSValue jsHTMLBodyElementOnfocusout(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
70 | bool setJSHTMLBodyElementOnfocusout(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
71 | JSC::EncodedJSValue jsHTMLBodyElementOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
72 | bool setJSHTMLBodyElementOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
73 | JSC::EncodedJSValue jsHTMLBodyElementOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
74 | bool setJSHTMLBodyElementOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
75 | JSC::EncodedJSValue jsHTMLBodyElementOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
76 | bool setJSHTMLBodyElementOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
77 | #if ENABLE(MOUSE_FORCE_EVENTS) |
78 | JSC::EncodedJSValue jsHTMLBodyElementOnwebkitmouseforcechanged(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
79 | bool setJSHTMLBodyElementOnwebkitmouseforcechanged(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
80 | #endif |
81 | #if ENABLE(MOUSE_FORCE_EVENTS) |
82 | JSC::EncodedJSValue jsHTMLBodyElementOnwebkitmouseforcedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
83 | bool setJSHTMLBodyElementOnwebkitmouseforcedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
84 | #endif |
85 | #if ENABLE(MOUSE_FORCE_EVENTS) |
86 | JSC::EncodedJSValue jsHTMLBodyElementOnwebkitmouseforcewillbegin(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
87 | bool setJSHTMLBodyElementOnwebkitmouseforcewillbegin(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
88 | #endif |
89 | #if ENABLE(MOUSE_FORCE_EVENTS) |
90 | JSC::EncodedJSValue jsHTMLBodyElementOnwebkitmouseforceup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
91 | bool setJSHTMLBodyElementOnwebkitmouseforceup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
92 | #endif |
93 | JSC::EncodedJSValue jsHTMLBodyElementOnselectionchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
94 | bool setJSHTMLBodyElementOnselectionchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
95 | JSC::EncodedJSValue jsHTMLBodyElementOnafterprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
96 | bool setJSHTMLBodyElementOnafterprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
97 | JSC::EncodedJSValue jsHTMLBodyElementOnbeforeprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
98 | bool setJSHTMLBodyElementOnbeforeprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
99 | JSC::EncodedJSValue jsHTMLBodyElementOnbeforeunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
100 | bool setJSHTMLBodyElementOnbeforeunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
101 | JSC::EncodedJSValue jsHTMLBodyElementOnhashchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
102 | bool setJSHTMLBodyElementOnhashchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
103 | JSC::EncodedJSValue jsHTMLBodyElementOnlanguagechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
104 | bool setJSHTMLBodyElementOnlanguagechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
105 | JSC::EncodedJSValue jsHTMLBodyElementOnmessage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
106 | bool setJSHTMLBodyElementOnmessage(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
107 | JSC::EncodedJSValue jsHTMLBodyElementOnoffline(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
108 | bool setJSHTMLBodyElementOnoffline(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
109 | JSC::EncodedJSValue jsHTMLBodyElementOnonline(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
110 | bool setJSHTMLBodyElementOnonline(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
111 | JSC::EncodedJSValue jsHTMLBodyElementOnpagehide(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
112 | bool setJSHTMLBodyElementOnpagehide(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
113 | JSC::EncodedJSValue jsHTMLBodyElementOnpageshow(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
114 | bool setJSHTMLBodyElementOnpageshow(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
115 | JSC::EncodedJSValue jsHTMLBodyElementOnpopstate(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
116 | bool setJSHTMLBodyElementOnpopstate(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
117 | JSC::EncodedJSValue jsHTMLBodyElementOnstorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
118 | bool setJSHTMLBodyElementOnstorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
119 | JSC::EncodedJSValue jsHTMLBodyElementOnunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
120 | bool setJSHTMLBodyElementOnunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
121 | #if ENABLE(ORIENTATION_EVENTS) |
122 | JSC::EncodedJSValue jsHTMLBodyElementOnorientationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
123 | bool setJSHTMLBodyElementOnorientationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
124 | #endif |
125 | |
126 | class JSHTMLBodyElementPrototype : public JSC::JSNonFinalObject { |
127 | public: |
128 | using Base = JSC::JSNonFinalObject; |
129 | static JSHTMLBodyElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
130 | { |
131 | JSHTMLBodyElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSHTMLBodyElementPrototype>(vm.heap)) JSHTMLBodyElementPrototype(vm, globalObject, structure); |
132 | ptr->finishCreation(vm); |
133 | return ptr; |
134 | } |
135 | |
136 | DECLARE_INFO; |
137 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
138 | { |
139 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
140 | } |
141 | |
142 | private: |
143 | JSHTMLBodyElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
144 | : JSC::JSNonFinalObject(vm, structure) |
145 | { |
146 | } |
147 | |
148 | void finishCreation(JSC::VM&); |
149 | }; |
150 | |
151 | using JSHTMLBodyElementConstructor = JSDOMConstructorNotConstructable<JSHTMLBodyElement>; |
152 | |
153 | template<> JSValue JSHTMLBodyElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
154 | { |
155 | return JSHTMLElement::getConstructor(vm, &globalObject); |
156 | } |
157 | |
158 | template<> void JSHTMLBodyElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
159 | { |
160 | putDirect(vm, vm.propertyNames->prototype, JSHTMLBodyElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
161 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("HTMLBodyElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
162 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
163 | } |
164 | |
165 | template<> const ClassInfo JSHTMLBodyElementConstructor::s_info = { "HTMLBodyElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLBodyElementConstructor) }; |
166 | |
167 | /* Hash table for prototype */ |
168 | |
169 | static const HashTableValue JSHTMLBodyElementPrototypeTableValues[] = |
170 | { |
171 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementConstructor) } }, |
172 | { "aLink" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementALink), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementALink) } }, |
173 | { "background" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementBackground), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementBackground) } }, |
174 | { "bgColor" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementBgColor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementBgColor) } }, |
175 | { "link" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementLink), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementLink) } }, |
176 | { "text" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementText), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementText) } }, |
177 | { "vLink" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementVLink), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementVLink) } }, |
178 | { "onblur" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnblur), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnblur) } }, |
179 | { "onerror" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnerror), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnerror) } }, |
180 | { "onfocus" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnfocus), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnfocus) } }, |
181 | { "onfocusin" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnfocusin), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnfocusin) } }, |
182 | { "onfocusout" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnfocusout), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnfocusout) } }, |
183 | { "onload" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnload) } }, |
184 | { "onresize" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnresize), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnresize) } }, |
185 | { "onscroll" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnscroll), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnscroll) } }, |
186 | #if ENABLE(MOUSE_FORCE_EVENTS) |
187 | { "onwebkitmouseforcechanged" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnwebkitmouseforcechanged), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnwebkitmouseforcechanged) } }, |
188 | #else |
189 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
190 | #endif |
191 | #if ENABLE(MOUSE_FORCE_EVENTS) |
192 | { "onwebkitmouseforcedown" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnwebkitmouseforcedown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnwebkitmouseforcedown) } }, |
193 | #else |
194 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
195 | #endif |
196 | #if ENABLE(MOUSE_FORCE_EVENTS) |
197 | { "onwebkitmouseforcewillbegin" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnwebkitmouseforcewillbegin), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnwebkitmouseforcewillbegin) } }, |
198 | #else |
199 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
200 | #endif |
201 | #if ENABLE(MOUSE_FORCE_EVENTS) |
202 | { "onwebkitmouseforceup" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnwebkitmouseforceup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnwebkitmouseforceup) } }, |
203 | #else |
204 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
205 | #endif |
206 | { "onselectionchange" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnselectionchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnselectionchange) } }, |
207 | { "onafterprint" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnafterprint), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnafterprint) } }, |
208 | { "onbeforeprint" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnbeforeprint), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnbeforeprint) } }, |
209 | { "onbeforeunload" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnbeforeunload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnbeforeunload) } }, |
210 | { "onhashchange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnhashchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnhashchange) } }, |
211 | { "onlanguagechange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnlanguagechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnlanguagechange) } }, |
212 | { "onmessage" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnmessage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnmessage) } }, |
213 | { "onoffline" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnoffline), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnoffline) } }, |
214 | { "ononline" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnonline), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnonline) } }, |
215 | { "onpagehide" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnpagehide), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnpagehide) } }, |
216 | { "onpageshow" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnpageshow), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnpageshow) } }, |
217 | { "onpopstate" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnpopstate), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnpopstate) } }, |
218 | { "onstorage" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnstorage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnstorage) } }, |
219 | { "onunload" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnunload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnunload) } }, |
220 | #if ENABLE(ORIENTATION_EVENTS) |
221 | { "onorientationchange" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLBodyElementOnorientationchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLBodyElementOnorientationchange) } }, |
222 | #else |
223 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
224 | #endif |
225 | }; |
226 | |
227 | const ClassInfo JSHTMLBodyElementPrototype::s_info = { "HTMLBodyElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLBodyElementPrototype) }; |
228 | |
229 | void JSHTMLBodyElementPrototype::finishCreation(VM& vm) |
230 | { |
231 | Base::finishCreation(vm); |
232 | reifyStaticProperties(vm, JSHTMLBodyElement::info(), JSHTMLBodyElementPrototypeTableValues, *this); |
233 | } |
234 | |
235 | const ClassInfo JSHTMLBodyElement::s_info = { "HTMLBodyElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLBodyElement) }; |
236 | |
237 | JSHTMLBodyElement::JSHTMLBodyElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<HTMLBodyElement>&& impl) |
238 | : JSHTMLElement(structure, globalObject, WTFMove(impl)) |
239 | { |
240 | } |
241 | |
242 | void JSHTMLBodyElement::finishCreation(VM& vm) |
243 | { |
244 | Base::finishCreation(vm); |
245 | ASSERT(inherits(vm, info())); |
246 | |
247 | } |
248 | |
249 | JSObject* JSHTMLBodyElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
250 | { |
251 | return JSHTMLBodyElementPrototype::create(vm, &globalObject, JSHTMLBodyElementPrototype::createStructure(vm, &globalObject, JSHTMLElement::prototype(vm, globalObject))); |
252 | } |
253 | |
254 | JSObject* JSHTMLBodyElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
255 | { |
256 | return getDOMPrototype<JSHTMLBodyElement>(vm, globalObject); |
257 | } |
258 | |
259 | JSValue JSHTMLBodyElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
260 | { |
261 | return getDOMConstructor<JSHTMLBodyElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
262 | } |
263 | |
264 | template<> inline JSHTMLBodyElement* IDLAttribute<JSHTMLBodyElement>::cast(ExecState& state, EncodedJSValue thisValue) |
265 | { |
266 | return jsDynamicCast<JSHTMLBodyElement*>(state.vm(), JSValue::decode(thisValue)); |
267 | } |
268 | |
269 | EncodedJSValue jsHTMLBodyElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
270 | { |
271 | VM& vm = state->vm(); |
272 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
273 | auto* prototype = jsDynamicCast<JSHTMLBodyElementPrototype*>(vm, JSValue::decode(thisValue)); |
274 | if (UNLIKELY(!prototype)) |
275 | return throwVMTypeError(state, throwScope); |
276 | return JSValue::encode(JSHTMLBodyElement::getConstructor(state->vm(), prototype->globalObject())); |
277 | } |
278 | |
279 | bool setJSHTMLBodyElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
280 | { |
281 | VM& vm = state->vm(); |
282 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
283 | auto* prototype = jsDynamicCast<JSHTMLBodyElementPrototype*>(vm, JSValue::decode(thisValue)); |
284 | if (UNLIKELY(!prototype)) { |
285 | throwVMTypeError(state, throwScope); |
286 | return false; |
287 | } |
288 | // Shadowing a built-in constructor |
289 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
290 | } |
291 | |
292 | static inline JSValue jsHTMLBodyElementALinkGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
293 | { |
294 | UNUSED_PARAM(throwScope); |
295 | UNUSED_PARAM(state); |
296 | auto& impl = thisObject.wrapped(); |
297 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::alinkAttr)); |
298 | return result; |
299 | } |
300 | |
301 | EncodedJSValue jsHTMLBodyElementALink(ExecState* state, EncodedJSValue thisValue, PropertyName) |
302 | { |
303 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementALinkGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "aLink" ); |
304 | } |
305 | |
306 | static inline bool setJSHTMLBodyElementALinkSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
307 | { |
308 | UNUSED_PARAM(throwScope); |
309 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
310 | auto& impl = thisObject.wrapped(); |
311 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
312 | RETURN_IF_EXCEPTION(throwScope, false); |
313 | AttributeSetter::call(state, throwScope, [&] { |
314 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::alinkAttr, WTFMove(nativeValue)); |
315 | }); |
316 | return true; |
317 | } |
318 | |
319 | bool setJSHTMLBodyElementALink(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
320 | { |
321 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementALinkSetter>(*state, thisValue, encodedValue, "aLink" ); |
322 | } |
323 | |
324 | static inline JSValue jsHTMLBodyElementBackgroundGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
325 | { |
326 | UNUSED_PARAM(throwScope); |
327 | UNUSED_PARAM(state); |
328 | auto& impl = thisObject.wrapped(); |
329 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::backgroundAttr)); |
330 | return result; |
331 | } |
332 | |
333 | EncodedJSValue jsHTMLBodyElementBackground(ExecState* state, EncodedJSValue thisValue, PropertyName) |
334 | { |
335 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementBackgroundGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "background" ); |
336 | } |
337 | |
338 | static inline bool setJSHTMLBodyElementBackgroundSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
339 | { |
340 | UNUSED_PARAM(throwScope); |
341 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
342 | auto& impl = thisObject.wrapped(); |
343 | auto nativeValue = convert<IDLDOMString>(state, value); |
344 | RETURN_IF_EXCEPTION(throwScope, false); |
345 | AttributeSetter::call(state, throwScope, [&] { |
346 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::backgroundAttr, WTFMove(nativeValue)); |
347 | }); |
348 | return true; |
349 | } |
350 | |
351 | bool setJSHTMLBodyElementBackground(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
352 | { |
353 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementBackgroundSetter>(*state, thisValue, encodedValue, "background" ); |
354 | } |
355 | |
356 | static inline JSValue jsHTMLBodyElementBgColorGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
357 | { |
358 | UNUSED_PARAM(throwScope); |
359 | UNUSED_PARAM(state); |
360 | auto& impl = thisObject.wrapped(); |
361 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::bgcolorAttr)); |
362 | return result; |
363 | } |
364 | |
365 | EncodedJSValue jsHTMLBodyElementBgColor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
366 | { |
367 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementBgColorGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "bgColor" ); |
368 | } |
369 | |
370 | static inline bool setJSHTMLBodyElementBgColorSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
371 | { |
372 | UNUSED_PARAM(throwScope); |
373 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
374 | auto& impl = thisObject.wrapped(); |
375 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
376 | RETURN_IF_EXCEPTION(throwScope, false); |
377 | AttributeSetter::call(state, throwScope, [&] { |
378 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::bgcolorAttr, WTFMove(nativeValue)); |
379 | }); |
380 | return true; |
381 | } |
382 | |
383 | bool setJSHTMLBodyElementBgColor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
384 | { |
385 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementBgColorSetter>(*state, thisValue, encodedValue, "bgColor" ); |
386 | } |
387 | |
388 | static inline JSValue jsHTMLBodyElementLinkGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
389 | { |
390 | UNUSED_PARAM(throwScope); |
391 | UNUSED_PARAM(state); |
392 | auto& impl = thisObject.wrapped(); |
393 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::linkAttr)); |
394 | return result; |
395 | } |
396 | |
397 | EncodedJSValue jsHTMLBodyElementLink(ExecState* state, EncodedJSValue thisValue, PropertyName) |
398 | { |
399 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementLinkGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "link" ); |
400 | } |
401 | |
402 | static inline bool setJSHTMLBodyElementLinkSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
403 | { |
404 | UNUSED_PARAM(throwScope); |
405 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
406 | auto& impl = thisObject.wrapped(); |
407 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
408 | RETURN_IF_EXCEPTION(throwScope, false); |
409 | AttributeSetter::call(state, throwScope, [&] { |
410 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::linkAttr, WTFMove(nativeValue)); |
411 | }); |
412 | return true; |
413 | } |
414 | |
415 | bool setJSHTMLBodyElementLink(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
416 | { |
417 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementLinkSetter>(*state, thisValue, encodedValue, "link" ); |
418 | } |
419 | |
420 | static inline JSValue jsHTMLBodyElementTextGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
421 | { |
422 | UNUSED_PARAM(throwScope); |
423 | UNUSED_PARAM(state); |
424 | auto& impl = thisObject.wrapped(); |
425 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::textAttr)); |
426 | return result; |
427 | } |
428 | |
429 | EncodedJSValue jsHTMLBodyElementText(ExecState* state, EncodedJSValue thisValue, PropertyName) |
430 | { |
431 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementTextGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "text" ); |
432 | } |
433 | |
434 | static inline bool setJSHTMLBodyElementTextSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
435 | { |
436 | UNUSED_PARAM(throwScope); |
437 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
438 | auto& impl = thisObject.wrapped(); |
439 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
440 | RETURN_IF_EXCEPTION(throwScope, false); |
441 | AttributeSetter::call(state, throwScope, [&] { |
442 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::textAttr, WTFMove(nativeValue)); |
443 | }); |
444 | return true; |
445 | } |
446 | |
447 | bool setJSHTMLBodyElementText(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
448 | { |
449 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementTextSetter>(*state, thisValue, encodedValue, "text" ); |
450 | } |
451 | |
452 | static inline JSValue jsHTMLBodyElementVLinkGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
453 | { |
454 | UNUSED_PARAM(throwScope); |
455 | UNUSED_PARAM(state); |
456 | auto& impl = thisObject.wrapped(); |
457 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::vlinkAttr)); |
458 | return result; |
459 | } |
460 | |
461 | EncodedJSValue jsHTMLBodyElementVLink(ExecState* state, EncodedJSValue thisValue, PropertyName) |
462 | { |
463 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementVLinkGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "vLink" ); |
464 | } |
465 | |
466 | static inline bool setJSHTMLBodyElementVLinkSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
467 | { |
468 | UNUSED_PARAM(throwScope); |
469 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
470 | auto& impl = thisObject.wrapped(); |
471 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
472 | RETURN_IF_EXCEPTION(throwScope, false); |
473 | AttributeSetter::call(state, throwScope, [&] { |
474 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::vlinkAttr, WTFMove(nativeValue)); |
475 | }); |
476 | return true; |
477 | } |
478 | |
479 | bool setJSHTMLBodyElementVLink(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
480 | { |
481 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementVLinkSetter>(*state, thisValue, encodedValue, "vLink" ); |
482 | } |
483 | |
484 | static inline JSValue jsHTMLBodyElementOnblurGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
485 | { |
486 | UNUSED_PARAM(throwScope); |
487 | UNUSED_PARAM(state); |
488 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().blurEvent, worldForDOMObject(thisObject)); |
489 | } |
490 | |
491 | EncodedJSValue jsHTMLBodyElementOnblur(ExecState* state, EncodedJSValue thisValue, PropertyName) |
492 | { |
493 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnblurGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onblur" ); |
494 | } |
495 | |
496 | static inline bool setJSHTMLBodyElementOnblurSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
497 | { |
498 | UNUSED_PARAM(throwScope); |
499 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().blurEvent, value); |
500 | return true; |
501 | } |
502 | |
503 | bool setJSHTMLBodyElementOnblur(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
504 | { |
505 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnblurSetter>(*state, thisValue, encodedValue, "onblur" ); |
506 | } |
507 | |
508 | static inline JSValue jsHTMLBodyElementOnerrorGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
509 | { |
510 | UNUSED_PARAM(throwScope); |
511 | UNUSED_PARAM(state); |
512 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().errorEvent, worldForDOMObject(thisObject)); |
513 | } |
514 | |
515 | EncodedJSValue jsHTMLBodyElementOnerror(ExecState* state, EncodedJSValue thisValue, PropertyName) |
516 | { |
517 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnerrorGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onerror" ); |
518 | } |
519 | |
520 | static inline bool setJSHTMLBodyElementOnerrorSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
521 | { |
522 | UNUSED_PARAM(throwScope); |
523 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().errorEvent, value); |
524 | return true; |
525 | } |
526 | |
527 | bool setJSHTMLBodyElementOnerror(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
528 | { |
529 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnerrorSetter>(*state, thisValue, encodedValue, "onerror" ); |
530 | } |
531 | |
532 | static inline JSValue jsHTMLBodyElementOnfocusGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
533 | { |
534 | UNUSED_PARAM(throwScope); |
535 | UNUSED_PARAM(state); |
536 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().focusEvent, worldForDOMObject(thisObject)); |
537 | } |
538 | |
539 | EncodedJSValue jsHTMLBodyElementOnfocus(ExecState* state, EncodedJSValue thisValue, PropertyName) |
540 | { |
541 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnfocusGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onfocus" ); |
542 | } |
543 | |
544 | static inline bool setJSHTMLBodyElementOnfocusSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
545 | { |
546 | UNUSED_PARAM(throwScope); |
547 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().focusEvent, value); |
548 | return true; |
549 | } |
550 | |
551 | bool setJSHTMLBodyElementOnfocus(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
552 | { |
553 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnfocusSetter>(*state, thisValue, encodedValue, "onfocus" ); |
554 | } |
555 | |
556 | static inline JSValue jsHTMLBodyElementOnfocusinGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
557 | { |
558 | UNUSED_PARAM(throwScope); |
559 | UNUSED_PARAM(state); |
560 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().focusinEvent, worldForDOMObject(thisObject)); |
561 | } |
562 | |
563 | EncodedJSValue jsHTMLBodyElementOnfocusin(ExecState* state, EncodedJSValue thisValue, PropertyName) |
564 | { |
565 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnfocusinGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onfocusin" ); |
566 | } |
567 | |
568 | static inline bool setJSHTMLBodyElementOnfocusinSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
569 | { |
570 | UNUSED_PARAM(throwScope); |
571 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().focusinEvent, value); |
572 | return true; |
573 | } |
574 | |
575 | bool setJSHTMLBodyElementOnfocusin(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
576 | { |
577 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnfocusinSetter>(*state, thisValue, encodedValue, "onfocusin" ); |
578 | } |
579 | |
580 | static inline JSValue jsHTMLBodyElementOnfocusoutGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
581 | { |
582 | UNUSED_PARAM(throwScope); |
583 | UNUSED_PARAM(state); |
584 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().focusoutEvent, worldForDOMObject(thisObject)); |
585 | } |
586 | |
587 | EncodedJSValue jsHTMLBodyElementOnfocusout(ExecState* state, EncodedJSValue thisValue, PropertyName) |
588 | { |
589 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnfocusoutGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onfocusout" ); |
590 | } |
591 | |
592 | static inline bool setJSHTMLBodyElementOnfocusoutSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
593 | { |
594 | UNUSED_PARAM(throwScope); |
595 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().focusoutEvent, value); |
596 | return true; |
597 | } |
598 | |
599 | bool setJSHTMLBodyElementOnfocusout(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
600 | { |
601 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnfocusoutSetter>(*state, thisValue, encodedValue, "onfocusout" ); |
602 | } |
603 | |
604 | static inline JSValue jsHTMLBodyElementOnloadGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
605 | { |
606 | UNUSED_PARAM(throwScope); |
607 | UNUSED_PARAM(state); |
608 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().loadEvent, worldForDOMObject(thisObject)); |
609 | } |
610 | |
611 | EncodedJSValue jsHTMLBodyElementOnload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
612 | { |
613 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnloadGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onload" ); |
614 | } |
615 | |
616 | static inline bool setJSHTMLBodyElementOnloadSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
617 | { |
618 | UNUSED_PARAM(throwScope); |
619 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().loadEvent, value); |
620 | return true; |
621 | } |
622 | |
623 | bool setJSHTMLBodyElementOnload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
624 | { |
625 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnloadSetter>(*state, thisValue, encodedValue, "onload" ); |
626 | } |
627 | |
628 | static inline JSValue jsHTMLBodyElementOnresizeGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
629 | { |
630 | UNUSED_PARAM(throwScope); |
631 | UNUSED_PARAM(state); |
632 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().resizeEvent, worldForDOMObject(thisObject)); |
633 | } |
634 | |
635 | EncodedJSValue jsHTMLBodyElementOnresize(ExecState* state, EncodedJSValue thisValue, PropertyName) |
636 | { |
637 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnresizeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onresize" ); |
638 | } |
639 | |
640 | static inline bool setJSHTMLBodyElementOnresizeSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
641 | { |
642 | UNUSED_PARAM(throwScope); |
643 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().resizeEvent, value); |
644 | return true; |
645 | } |
646 | |
647 | bool setJSHTMLBodyElementOnresize(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
648 | { |
649 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnresizeSetter>(*state, thisValue, encodedValue, "onresize" ); |
650 | } |
651 | |
652 | static inline JSValue jsHTMLBodyElementOnscrollGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
653 | { |
654 | UNUSED_PARAM(throwScope); |
655 | UNUSED_PARAM(state); |
656 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().scrollEvent, worldForDOMObject(thisObject)); |
657 | } |
658 | |
659 | EncodedJSValue jsHTMLBodyElementOnscroll(ExecState* state, EncodedJSValue thisValue, PropertyName) |
660 | { |
661 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnscrollGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onscroll" ); |
662 | } |
663 | |
664 | static inline bool setJSHTMLBodyElementOnscrollSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
665 | { |
666 | UNUSED_PARAM(throwScope); |
667 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().scrollEvent, value); |
668 | return true; |
669 | } |
670 | |
671 | bool setJSHTMLBodyElementOnscroll(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
672 | { |
673 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnscrollSetter>(*state, thisValue, encodedValue, "onscroll" ); |
674 | } |
675 | |
676 | #if ENABLE(MOUSE_FORCE_EVENTS) |
677 | static inline JSValue jsHTMLBodyElementOnwebkitmouseforcechangedGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
678 | { |
679 | UNUSED_PARAM(throwScope); |
680 | UNUSED_PARAM(state); |
681 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforcechangedEvent, worldForDOMObject(thisObject)); |
682 | } |
683 | |
684 | EncodedJSValue jsHTMLBodyElementOnwebkitmouseforcechanged(ExecState* state, EncodedJSValue thisValue, PropertyName) |
685 | { |
686 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnwebkitmouseforcechangedGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforcechanged" ); |
687 | } |
688 | |
689 | #endif |
690 | |
691 | #if ENABLE(MOUSE_FORCE_EVENTS) |
692 | static inline bool setJSHTMLBodyElementOnwebkitmouseforcechangedSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
693 | { |
694 | UNUSED_PARAM(throwScope); |
695 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforcechangedEvent, value); |
696 | return true; |
697 | } |
698 | |
699 | bool setJSHTMLBodyElementOnwebkitmouseforcechanged(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
700 | { |
701 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnwebkitmouseforcechangedSetter>(*state, thisValue, encodedValue, "onwebkitmouseforcechanged" ); |
702 | } |
703 | |
704 | #endif |
705 | |
706 | #if ENABLE(MOUSE_FORCE_EVENTS) |
707 | static inline JSValue jsHTMLBodyElementOnwebkitmouseforcedownGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
708 | { |
709 | UNUSED_PARAM(throwScope); |
710 | UNUSED_PARAM(state); |
711 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforcedownEvent, worldForDOMObject(thisObject)); |
712 | } |
713 | |
714 | EncodedJSValue jsHTMLBodyElementOnwebkitmouseforcedown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
715 | { |
716 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnwebkitmouseforcedownGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforcedown" ); |
717 | } |
718 | |
719 | #endif |
720 | |
721 | #if ENABLE(MOUSE_FORCE_EVENTS) |
722 | static inline bool setJSHTMLBodyElementOnwebkitmouseforcedownSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
723 | { |
724 | UNUSED_PARAM(throwScope); |
725 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforcedownEvent, value); |
726 | return true; |
727 | } |
728 | |
729 | bool setJSHTMLBodyElementOnwebkitmouseforcedown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
730 | { |
731 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnwebkitmouseforcedownSetter>(*state, thisValue, encodedValue, "onwebkitmouseforcedown" ); |
732 | } |
733 | |
734 | #endif |
735 | |
736 | #if ENABLE(MOUSE_FORCE_EVENTS) |
737 | static inline JSValue jsHTMLBodyElementOnwebkitmouseforcewillbeginGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
738 | { |
739 | UNUSED_PARAM(throwScope); |
740 | UNUSED_PARAM(state); |
741 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforcewillbeginEvent, worldForDOMObject(thisObject)); |
742 | } |
743 | |
744 | EncodedJSValue jsHTMLBodyElementOnwebkitmouseforcewillbegin(ExecState* state, EncodedJSValue thisValue, PropertyName) |
745 | { |
746 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnwebkitmouseforcewillbeginGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforcewillbegin" ); |
747 | } |
748 | |
749 | #endif |
750 | |
751 | #if ENABLE(MOUSE_FORCE_EVENTS) |
752 | static inline bool setJSHTMLBodyElementOnwebkitmouseforcewillbeginSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
753 | { |
754 | UNUSED_PARAM(throwScope); |
755 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforcewillbeginEvent, value); |
756 | return true; |
757 | } |
758 | |
759 | bool setJSHTMLBodyElementOnwebkitmouseforcewillbegin(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
760 | { |
761 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnwebkitmouseforcewillbeginSetter>(*state, thisValue, encodedValue, "onwebkitmouseforcewillbegin" ); |
762 | } |
763 | |
764 | #endif |
765 | |
766 | #if ENABLE(MOUSE_FORCE_EVENTS) |
767 | static inline JSValue jsHTMLBodyElementOnwebkitmouseforceupGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
768 | { |
769 | UNUSED_PARAM(throwScope); |
770 | UNUSED_PARAM(state); |
771 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforceupEvent, worldForDOMObject(thisObject)); |
772 | } |
773 | |
774 | EncodedJSValue jsHTMLBodyElementOnwebkitmouseforceup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
775 | { |
776 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnwebkitmouseforceupGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforceup" ); |
777 | } |
778 | |
779 | #endif |
780 | |
781 | #if ENABLE(MOUSE_FORCE_EVENTS) |
782 | static inline bool setJSHTMLBodyElementOnwebkitmouseforceupSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
783 | { |
784 | UNUSED_PARAM(throwScope); |
785 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforceupEvent, value); |
786 | return true; |
787 | } |
788 | |
789 | bool setJSHTMLBodyElementOnwebkitmouseforceup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
790 | { |
791 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnwebkitmouseforceupSetter>(*state, thisValue, encodedValue, "onwebkitmouseforceup" ); |
792 | } |
793 | |
794 | #endif |
795 | |
796 | static inline JSValue jsHTMLBodyElementOnselectionchangeGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
797 | { |
798 | UNUSED_PARAM(throwScope); |
799 | UNUSED_PARAM(state); |
800 | return documentEventHandlerAttribute(thisObject.wrapped(), eventNames().selectionchangeEvent, worldForDOMObject(thisObject)); |
801 | } |
802 | |
803 | EncodedJSValue jsHTMLBodyElementOnselectionchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
804 | { |
805 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnselectionchangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onselectionchange" ); |
806 | } |
807 | |
808 | static inline bool setJSHTMLBodyElementOnselectionchangeSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
809 | { |
810 | UNUSED_PARAM(throwScope); |
811 | setDocumentEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().selectionchangeEvent, value); |
812 | return true; |
813 | } |
814 | |
815 | bool setJSHTMLBodyElementOnselectionchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
816 | { |
817 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnselectionchangeSetter>(*state, thisValue, encodedValue, "onselectionchange" ); |
818 | } |
819 | |
820 | static inline JSValue jsHTMLBodyElementOnafterprintGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
821 | { |
822 | UNUSED_PARAM(throwScope); |
823 | UNUSED_PARAM(state); |
824 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().afterprintEvent, worldForDOMObject(thisObject)); |
825 | } |
826 | |
827 | EncodedJSValue jsHTMLBodyElementOnafterprint(ExecState* state, EncodedJSValue thisValue, PropertyName) |
828 | { |
829 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnafterprintGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onafterprint" ); |
830 | } |
831 | |
832 | static inline bool setJSHTMLBodyElementOnafterprintSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
833 | { |
834 | UNUSED_PARAM(throwScope); |
835 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().afterprintEvent, value); |
836 | return true; |
837 | } |
838 | |
839 | bool setJSHTMLBodyElementOnafterprint(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
840 | { |
841 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnafterprintSetter>(*state, thisValue, encodedValue, "onafterprint" ); |
842 | } |
843 | |
844 | static inline JSValue jsHTMLBodyElementOnbeforeprintGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
845 | { |
846 | UNUSED_PARAM(throwScope); |
847 | UNUSED_PARAM(state); |
848 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().beforeprintEvent, worldForDOMObject(thisObject)); |
849 | } |
850 | |
851 | EncodedJSValue jsHTMLBodyElementOnbeforeprint(ExecState* state, EncodedJSValue thisValue, PropertyName) |
852 | { |
853 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnbeforeprintGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onbeforeprint" ); |
854 | } |
855 | |
856 | static inline bool setJSHTMLBodyElementOnbeforeprintSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
857 | { |
858 | UNUSED_PARAM(throwScope); |
859 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().beforeprintEvent, value); |
860 | return true; |
861 | } |
862 | |
863 | bool setJSHTMLBodyElementOnbeforeprint(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
864 | { |
865 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnbeforeprintSetter>(*state, thisValue, encodedValue, "onbeforeprint" ); |
866 | } |
867 | |
868 | static inline JSValue jsHTMLBodyElementOnbeforeunloadGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
869 | { |
870 | UNUSED_PARAM(throwScope); |
871 | UNUSED_PARAM(state); |
872 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().beforeunloadEvent, worldForDOMObject(thisObject)); |
873 | } |
874 | |
875 | EncodedJSValue jsHTMLBodyElementOnbeforeunload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
876 | { |
877 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnbeforeunloadGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onbeforeunload" ); |
878 | } |
879 | |
880 | static inline bool setJSHTMLBodyElementOnbeforeunloadSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
881 | { |
882 | UNUSED_PARAM(throwScope); |
883 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().beforeunloadEvent, value); |
884 | return true; |
885 | } |
886 | |
887 | bool setJSHTMLBodyElementOnbeforeunload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
888 | { |
889 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnbeforeunloadSetter>(*state, thisValue, encodedValue, "onbeforeunload" ); |
890 | } |
891 | |
892 | static inline JSValue jsHTMLBodyElementOnhashchangeGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
893 | { |
894 | UNUSED_PARAM(throwScope); |
895 | UNUSED_PARAM(state); |
896 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().hashchangeEvent, worldForDOMObject(thisObject)); |
897 | } |
898 | |
899 | EncodedJSValue jsHTMLBodyElementOnhashchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
900 | { |
901 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnhashchangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onhashchange" ); |
902 | } |
903 | |
904 | static inline bool setJSHTMLBodyElementOnhashchangeSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
905 | { |
906 | UNUSED_PARAM(throwScope); |
907 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().hashchangeEvent, value); |
908 | return true; |
909 | } |
910 | |
911 | bool setJSHTMLBodyElementOnhashchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
912 | { |
913 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnhashchangeSetter>(*state, thisValue, encodedValue, "onhashchange" ); |
914 | } |
915 | |
916 | static inline JSValue jsHTMLBodyElementOnlanguagechangeGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
917 | { |
918 | UNUSED_PARAM(throwScope); |
919 | UNUSED_PARAM(state); |
920 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().languagechangeEvent, worldForDOMObject(thisObject)); |
921 | } |
922 | |
923 | EncodedJSValue jsHTMLBodyElementOnlanguagechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
924 | { |
925 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnlanguagechangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onlanguagechange" ); |
926 | } |
927 | |
928 | static inline bool setJSHTMLBodyElementOnlanguagechangeSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
929 | { |
930 | UNUSED_PARAM(throwScope); |
931 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().languagechangeEvent, value); |
932 | return true; |
933 | } |
934 | |
935 | bool setJSHTMLBodyElementOnlanguagechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
936 | { |
937 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnlanguagechangeSetter>(*state, thisValue, encodedValue, "onlanguagechange" ); |
938 | } |
939 | |
940 | static inline JSValue jsHTMLBodyElementOnmessageGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
941 | { |
942 | UNUSED_PARAM(throwScope); |
943 | UNUSED_PARAM(state); |
944 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().messageEvent, worldForDOMObject(thisObject)); |
945 | } |
946 | |
947 | EncodedJSValue jsHTMLBodyElementOnmessage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
948 | { |
949 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnmessageGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmessage" ); |
950 | } |
951 | |
952 | static inline bool setJSHTMLBodyElementOnmessageSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
953 | { |
954 | UNUSED_PARAM(throwScope); |
955 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().messageEvent, value); |
956 | return true; |
957 | } |
958 | |
959 | bool setJSHTMLBodyElementOnmessage(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
960 | { |
961 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnmessageSetter>(*state, thisValue, encodedValue, "onmessage" ); |
962 | } |
963 | |
964 | static inline JSValue jsHTMLBodyElementOnofflineGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
965 | { |
966 | UNUSED_PARAM(throwScope); |
967 | UNUSED_PARAM(state); |
968 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().offlineEvent, worldForDOMObject(thisObject)); |
969 | } |
970 | |
971 | EncodedJSValue jsHTMLBodyElementOnoffline(ExecState* state, EncodedJSValue thisValue, PropertyName) |
972 | { |
973 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnofflineGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onoffline" ); |
974 | } |
975 | |
976 | static inline bool setJSHTMLBodyElementOnofflineSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
977 | { |
978 | UNUSED_PARAM(throwScope); |
979 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().offlineEvent, value); |
980 | return true; |
981 | } |
982 | |
983 | bool setJSHTMLBodyElementOnoffline(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
984 | { |
985 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnofflineSetter>(*state, thisValue, encodedValue, "onoffline" ); |
986 | } |
987 | |
988 | static inline JSValue jsHTMLBodyElementOnonlineGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
989 | { |
990 | UNUSED_PARAM(throwScope); |
991 | UNUSED_PARAM(state); |
992 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().onlineEvent, worldForDOMObject(thisObject)); |
993 | } |
994 | |
995 | EncodedJSValue jsHTMLBodyElementOnonline(ExecState* state, EncodedJSValue thisValue, PropertyName) |
996 | { |
997 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnonlineGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ononline" ); |
998 | } |
999 | |
1000 | static inline bool setJSHTMLBodyElementOnonlineSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
1001 | { |
1002 | UNUSED_PARAM(throwScope); |
1003 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().onlineEvent, value); |
1004 | return true; |
1005 | } |
1006 | |
1007 | bool setJSHTMLBodyElementOnonline(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
1008 | { |
1009 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnonlineSetter>(*state, thisValue, encodedValue, "ononline" ); |
1010 | } |
1011 | |
1012 | static inline JSValue jsHTMLBodyElementOnpagehideGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
1013 | { |
1014 | UNUSED_PARAM(throwScope); |
1015 | UNUSED_PARAM(state); |
1016 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().pagehideEvent, worldForDOMObject(thisObject)); |
1017 | } |
1018 | |
1019 | EncodedJSValue jsHTMLBodyElementOnpagehide(ExecState* state, EncodedJSValue thisValue, PropertyName) |
1020 | { |
1021 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnpagehideGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpagehide" ); |
1022 | } |
1023 | |
1024 | static inline bool setJSHTMLBodyElementOnpagehideSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
1025 | { |
1026 | UNUSED_PARAM(throwScope); |
1027 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pagehideEvent, value); |
1028 | return true; |
1029 | } |
1030 | |
1031 | bool setJSHTMLBodyElementOnpagehide(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
1032 | { |
1033 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnpagehideSetter>(*state, thisValue, encodedValue, "onpagehide" ); |
1034 | } |
1035 | |
1036 | static inline JSValue jsHTMLBodyElementOnpageshowGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
1037 | { |
1038 | UNUSED_PARAM(throwScope); |
1039 | UNUSED_PARAM(state); |
1040 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().pageshowEvent, worldForDOMObject(thisObject)); |
1041 | } |
1042 | |
1043 | EncodedJSValue jsHTMLBodyElementOnpageshow(ExecState* state, EncodedJSValue thisValue, PropertyName) |
1044 | { |
1045 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnpageshowGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpageshow" ); |
1046 | } |
1047 | |
1048 | static inline bool setJSHTMLBodyElementOnpageshowSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
1049 | { |
1050 | UNUSED_PARAM(throwScope); |
1051 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pageshowEvent, value); |
1052 | return true; |
1053 | } |
1054 | |
1055 | bool setJSHTMLBodyElementOnpageshow(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
1056 | { |
1057 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnpageshowSetter>(*state, thisValue, encodedValue, "onpageshow" ); |
1058 | } |
1059 | |
1060 | static inline JSValue jsHTMLBodyElementOnpopstateGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
1061 | { |
1062 | UNUSED_PARAM(throwScope); |
1063 | UNUSED_PARAM(state); |
1064 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().popstateEvent, worldForDOMObject(thisObject)); |
1065 | } |
1066 | |
1067 | EncodedJSValue jsHTMLBodyElementOnpopstate(ExecState* state, EncodedJSValue thisValue, PropertyName) |
1068 | { |
1069 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnpopstateGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpopstate" ); |
1070 | } |
1071 | |
1072 | static inline bool setJSHTMLBodyElementOnpopstateSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
1073 | { |
1074 | UNUSED_PARAM(throwScope); |
1075 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().popstateEvent, value); |
1076 | return true; |
1077 | } |
1078 | |
1079 | bool setJSHTMLBodyElementOnpopstate(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
1080 | { |
1081 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnpopstateSetter>(*state, thisValue, encodedValue, "onpopstate" ); |
1082 | } |
1083 | |
1084 | static inline JSValue jsHTMLBodyElementOnstorageGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
1085 | { |
1086 | UNUSED_PARAM(throwScope); |
1087 | UNUSED_PARAM(state); |
1088 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().storageEvent, worldForDOMObject(thisObject)); |
1089 | } |
1090 | |
1091 | EncodedJSValue jsHTMLBodyElementOnstorage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
1092 | { |
1093 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnstorageGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onstorage" ); |
1094 | } |
1095 | |
1096 | static inline bool setJSHTMLBodyElementOnstorageSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
1097 | { |
1098 | UNUSED_PARAM(throwScope); |
1099 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().storageEvent, value); |
1100 | return true; |
1101 | } |
1102 | |
1103 | bool setJSHTMLBodyElementOnstorage(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
1104 | { |
1105 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnstorageSetter>(*state, thisValue, encodedValue, "onstorage" ); |
1106 | } |
1107 | |
1108 | static inline JSValue jsHTMLBodyElementOnunloadGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
1109 | { |
1110 | UNUSED_PARAM(throwScope); |
1111 | UNUSED_PARAM(state); |
1112 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().unloadEvent, worldForDOMObject(thisObject)); |
1113 | } |
1114 | |
1115 | EncodedJSValue jsHTMLBodyElementOnunload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
1116 | { |
1117 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnunloadGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onunload" ); |
1118 | } |
1119 | |
1120 | static inline bool setJSHTMLBodyElementOnunloadSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
1121 | { |
1122 | UNUSED_PARAM(throwScope); |
1123 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().unloadEvent, value); |
1124 | return true; |
1125 | } |
1126 | |
1127 | bool setJSHTMLBodyElementOnunload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
1128 | { |
1129 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnunloadSetter>(*state, thisValue, encodedValue, "onunload" ); |
1130 | } |
1131 | |
1132 | #if ENABLE(ORIENTATION_EVENTS) |
1133 | static inline JSValue jsHTMLBodyElementOnorientationchangeGetter(ExecState& state, JSHTMLBodyElement& thisObject, ThrowScope& throwScope) |
1134 | { |
1135 | UNUSED_PARAM(throwScope); |
1136 | UNUSED_PARAM(state); |
1137 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().orientationchangeEvent, worldForDOMObject(thisObject)); |
1138 | } |
1139 | |
1140 | EncodedJSValue jsHTMLBodyElementOnorientationchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
1141 | { |
1142 | return IDLAttribute<JSHTMLBodyElement>::get<jsHTMLBodyElementOnorientationchangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onorientationchange" ); |
1143 | } |
1144 | |
1145 | #endif |
1146 | |
1147 | #if ENABLE(ORIENTATION_EVENTS) |
1148 | static inline bool setJSHTMLBodyElementOnorientationchangeSetter(ExecState& state, JSHTMLBodyElement& thisObject, JSValue value, ThrowScope& throwScope) |
1149 | { |
1150 | UNUSED_PARAM(throwScope); |
1151 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().orientationchangeEvent, value); |
1152 | return true; |
1153 | } |
1154 | |
1155 | bool setJSHTMLBodyElementOnorientationchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
1156 | { |
1157 | return IDLAttribute<JSHTMLBodyElement>::set<setJSHTMLBodyElementOnorientationchangeSetter>(*state, thisValue, encodedValue, "onorientationchange" ); |
1158 | } |
1159 | |
1160 | #endif |
1161 | |
1162 | void JSHTMLBodyElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
1163 | { |
1164 | auto* thisObject = jsCast<JSHTMLBodyElement*>(cell); |
1165 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
1166 | if (thisObject->scriptExecutionContext()) |
1167 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
1168 | Base::heapSnapshot(cell, builder); |
1169 | } |
1170 | |
1171 | |
1172 | } |
1173 | |