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 "JSHTMLFrameSetElement.h" |
23 | |
24 | #include "CustomElementReactionQueue.h" |
25 | #include "EventNames.h" |
26 | #include "HTMLNames.h" |
27 | #include "JSDOMAbstractOperations.h" |
28 | #include "JSDOMAttribute.h" |
29 | #include "JSDOMBinding.h" |
30 | #include "JSDOMConstructorNotConstructable.h" |
31 | #include "JSDOMConvertInterface.h" |
32 | #include "JSDOMConvertStrings.h" |
33 | #include "JSDOMExceptionHandling.h" |
34 | #include "JSDOMGlobalObject.h" |
35 | #include "JSDOMWrapperCache.h" |
36 | #include "JSEventListener.h" |
37 | #include "JSWindowProxy.h" |
38 | #include "ScriptExecutionContext.h" |
39 | #include <JavaScriptCore/HeapSnapshotBuilder.h> |
40 | #include <JavaScriptCore/JSCInlines.h> |
41 | #include <wtf/GetPtr.h> |
42 | #include <wtf/PointerPreparations.h> |
43 | #include <wtf/URL.h> |
44 | |
45 | |
46 | namespace WebCore { |
47 | using namespace JSC; |
48 | |
49 | // Attributes |
50 | |
51 | JSC::EncodedJSValue jsHTMLFrameSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
52 | bool setJSHTMLFrameSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
53 | JSC::EncodedJSValue jsHTMLFrameSetElementCols(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
54 | bool setJSHTMLFrameSetElementCols(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
55 | JSC::EncodedJSValue jsHTMLFrameSetElementRows(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
56 | bool setJSHTMLFrameSetElementRows(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
57 | JSC::EncodedJSValue jsHTMLFrameSetElementOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
58 | bool setJSHTMLFrameSetElementOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
59 | JSC::EncodedJSValue jsHTMLFrameSetElementOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
60 | bool setJSHTMLFrameSetElementOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
61 | JSC::EncodedJSValue jsHTMLFrameSetElementOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
62 | bool setJSHTMLFrameSetElementOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
63 | JSC::EncodedJSValue jsHTMLFrameSetElementOnfocusin(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
64 | bool setJSHTMLFrameSetElementOnfocusin(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
65 | JSC::EncodedJSValue jsHTMLFrameSetElementOnfocusout(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
66 | bool setJSHTMLFrameSetElementOnfocusout(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
67 | JSC::EncodedJSValue jsHTMLFrameSetElementOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
68 | bool setJSHTMLFrameSetElementOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
69 | JSC::EncodedJSValue jsHTMLFrameSetElementOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
70 | bool setJSHTMLFrameSetElementOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
71 | JSC::EncodedJSValue jsHTMLFrameSetElementOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
72 | bool setJSHTMLFrameSetElementOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
73 | JSC::EncodedJSValue jsHTMLFrameSetElementOnafterprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
74 | bool setJSHTMLFrameSetElementOnafterprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
75 | JSC::EncodedJSValue jsHTMLFrameSetElementOnbeforeprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
76 | bool setJSHTMLFrameSetElementOnbeforeprint(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
77 | JSC::EncodedJSValue jsHTMLFrameSetElementOnbeforeunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
78 | bool setJSHTMLFrameSetElementOnbeforeunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
79 | JSC::EncodedJSValue jsHTMLFrameSetElementOnhashchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
80 | bool setJSHTMLFrameSetElementOnhashchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
81 | JSC::EncodedJSValue jsHTMLFrameSetElementOnlanguagechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
82 | bool setJSHTMLFrameSetElementOnlanguagechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
83 | JSC::EncodedJSValue jsHTMLFrameSetElementOnmessage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
84 | bool setJSHTMLFrameSetElementOnmessage(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
85 | JSC::EncodedJSValue jsHTMLFrameSetElementOnoffline(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
86 | bool setJSHTMLFrameSetElementOnoffline(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
87 | JSC::EncodedJSValue jsHTMLFrameSetElementOnonline(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
88 | bool setJSHTMLFrameSetElementOnonline(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
89 | JSC::EncodedJSValue jsHTMLFrameSetElementOnpagehide(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
90 | bool setJSHTMLFrameSetElementOnpagehide(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
91 | JSC::EncodedJSValue jsHTMLFrameSetElementOnpageshow(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
92 | bool setJSHTMLFrameSetElementOnpageshow(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
93 | JSC::EncodedJSValue jsHTMLFrameSetElementOnpopstate(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
94 | bool setJSHTMLFrameSetElementOnpopstate(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
95 | JSC::EncodedJSValue jsHTMLFrameSetElementOnstorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
96 | bool setJSHTMLFrameSetElementOnstorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
97 | JSC::EncodedJSValue jsHTMLFrameSetElementOnunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
98 | bool setJSHTMLFrameSetElementOnunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
99 | #if ENABLE(ORIENTATION_EVENTS) |
100 | JSC::EncodedJSValue jsHTMLFrameSetElementOnorientationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
101 | bool setJSHTMLFrameSetElementOnorientationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
102 | #endif |
103 | |
104 | class JSHTMLFrameSetElementPrototype : public JSC::JSNonFinalObject { |
105 | public: |
106 | using Base = JSC::JSNonFinalObject; |
107 | static JSHTMLFrameSetElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
108 | { |
109 | JSHTMLFrameSetElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSHTMLFrameSetElementPrototype>(vm.heap)) JSHTMLFrameSetElementPrototype(vm, globalObject, structure); |
110 | ptr->finishCreation(vm); |
111 | return ptr; |
112 | } |
113 | |
114 | DECLARE_INFO; |
115 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
116 | { |
117 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
118 | } |
119 | |
120 | private: |
121 | JSHTMLFrameSetElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
122 | : JSC::JSNonFinalObject(vm, structure) |
123 | { |
124 | } |
125 | |
126 | void finishCreation(JSC::VM&); |
127 | }; |
128 | |
129 | using JSHTMLFrameSetElementConstructor = JSDOMConstructorNotConstructable<JSHTMLFrameSetElement>; |
130 | |
131 | template<> JSValue JSHTMLFrameSetElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
132 | { |
133 | return JSHTMLElement::getConstructor(vm, &globalObject); |
134 | } |
135 | |
136 | template<> void JSHTMLFrameSetElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
137 | { |
138 | putDirect(vm, vm.propertyNames->prototype, JSHTMLFrameSetElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
139 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("HTMLFrameSetElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
140 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
141 | } |
142 | |
143 | template<> const ClassInfo JSHTMLFrameSetElementConstructor::s_info = { "HTMLFrameSetElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLFrameSetElementConstructor) }; |
144 | |
145 | /* Hash table for prototype */ |
146 | |
147 | static const HashTableValue JSHTMLFrameSetElementPrototypeTableValues[] = |
148 | { |
149 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementConstructor) } }, |
150 | { "cols" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementCols), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementCols) } }, |
151 | { "rows" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementRows), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementRows) } }, |
152 | { "onblur" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnblur), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnblur) } }, |
153 | { "onerror" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnerror), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnerror) } }, |
154 | { "onfocus" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnfocus), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnfocus) } }, |
155 | { "onfocusin" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnfocusin), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnfocusin) } }, |
156 | { "onfocusout" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnfocusout), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnfocusout) } }, |
157 | { "onload" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnload) } }, |
158 | { "onresize" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnresize), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnresize) } }, |
159 | { "onscroll" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnscroll), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnscroll) } }, |
160 | { "onafterprint" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnafterprint), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnafterprint) } }, |
161 | { "onbeforeprint" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnbeforeprint), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnbeforeprint) } }, |
162 | { "onbeforeunload" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnbeforeunload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnbeforeunload) } }, |
163 | { "onhashchange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnhashchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnhashchange) } }, |
164 | { "onlanguagechange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnlanguagechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnlanguagechange) } }, |
165 | { "onmessage" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnmessage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnmessage) } }, |
166 | { "onoffline" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnoffline), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnoffline) } }, |
167 | { "ononline" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnonline), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnonline) } }, |
168 | { "onpagehide" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnpagehide), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnpagehide) } }, |
169 | { "onpageshow" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnpageshow), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnpageshow) } }, |
170 | { "onpopstate" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnpopstate), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnpopstate) } }, |
171 | { "onstorage" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnstorage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnstorage) } }, |
172 | { "onunload" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnunload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnunload) } }, |
173 | #if ENABLE(ORIENTATION_EVENTS) |
174 | { "onorientationchange" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnorientationchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLFrameSetElementOnorientationchange) } }, |
175 | #else |
176 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
177 | #endif |
178 | }; |
179 | |
180 | const ClassInfo JSHTMLFrameSetElementPrototype::s_info = { "HTMLFrameSetElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLFrameSetElementPrototype) }; |
181 | |
182 | void JSHTMLFrameSetElementPrototype::finishCreation(VM& vm) |
183 | { |
184 | Base::finishCreation(vm); |
185 | reifyStaticProperties(vm, JSHTMLFrameSetElement::info(), JSHTMLFrameSetElementPrototypeTableValues, *this); |
186 | } |
187 | |
188 | const ClassInfo JSHTMLFrameSetElement::s_info = { "HTMLFrameSetElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLFrameSetElement) }; |
189 | |
190 | JSHTMLFrameSetElement::JSHTMLFrameSetElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<HTMLFrameSetElement>&& impl) |
191 | : JSHTMLElement(structure, globalObject, WTFMove(impl)) |
192 | { |
193 | } |
194 | |
195 | void JSHTMLFrameSetElement::finishCreation(VM& vm) |
196 | { |
197 | Base::finishCreation(vm); |
198 | ASSERT(inherits(vm, info())); |
199 | |
200 | } |
201 | |
202 | JSObject* JSHTMLFrameSetElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
203 | { |
204 | return JSHTMLFrameSetElementPrototype::create(vm, &globalObject, JSHTMLFrameSetElementPrototype::createStructure(vm, &globalObject, JSHTMLElement::prototype(vm, globalObject))); |
205 | } |
206 | |
207 | JSObject* JSHTMLFrameSetElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
208 | { |
209 | return getDOMPrototype<JSHTMLFrameSetElement>(vm, globalObject); |
210 | } |
211 | |
212 | JSValue JSHTMLFrameSetElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
213 | { |
214 | return getDOMConstructor<JSHTMLFrameSetElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
215 | } |
216 | |
217 | bool JSHTMLFrameSetElement::getOwnPropertySlot(JSObject* object, ExecState* state, PropertyName propertyName, PropertySlot& slot) |
218 | { |
219 | auto* thisObject = jsCast<JSHTMLFrameSetElement*>(object); |
220 | ASSERT_GC_OBJECT_INHERITS(thisObject, info()); |
221 | using GetterIDLType = IDLInterface<WindowProxy>; |
222 | auto getterFunctor = [] (auto& thisObject, auto propertyName) -> Optional<typename GetterIDLType::ImplementationType> { |
223 | auto result = thisObject.wrapped().namedItem(propertyNameToAtomicString(propertyName)); |
224 | if (!GetterIDLType::isNullValue(result)) |
225 | return typename GetterIDLType::ImplementationType { GetterIDLType::extractValueFromNullable(result) }; |
226 | return WTF::nullopt; |
227 | }; |
228 | if (auto namedProperty = accessVisibleNamedProperty<OverrideBuiltins::No>(*state, *thisObject, propertyName, getterFunctor)) { |
229 | auto value = toJS<IDLInterface<WindowProxy>>(*state, *thisObject->globalObject(), WTFMove(namedProperty.value())); |
230 | slot.setValue(thisObject, static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly), value); |
231 | return true; |
232 | } |
233 | return JSObject::getOwnPropertySlot(object, state, propertyName, slot); |
234 | } |
235 | |
236 | bool JSHTMLFrameSetElement::getOwnPropertySlotByIndex(JSObject* object, ExecState* state, unsigned index, PropertySlot& slot) |
237 | { |
238 | auto* thisObject = jsCast<JSHTMLFrameSetElement*>(object); |
239 | ASSERT_GC_OBJECT_INHERITS(thisObject, info()); |
240 | auto propertyName = Identifier::from(state, index); |
241 | using GetterIDLType = IDLInterface<WindowProxy>; |
242 | auto getterFunctor = [] (auto& thisObject, auto propertyName) -> Optional<typename GetterIDLType::ImplementationType> { |
243 | auto result = thisObject.wrapped().namedItem(propertyNameToAtomicString(propertyName)); |
244 | if (!GetterIDLType::isNullValue(result)) |
245 | return typename GetterIDLType::ImplementationType { GetterIDLType::extractValueFromNullable(result) }; |
246 | return WTF::nullopt; |
247 | }; |
248 | if (auto namedProperty = accessVisibleNamedProperty<OverrideBuiltins::No>(*state, *thisObject, propertyName, getterFunctor)) { |
249 | auto value = toJS<IDLInterface<WindowProxy>>(*state, *thisObject->globalObject(), WTFMove(namedProperty.value())); |
250 | slot.setValue(thisObject, static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly), value); |
251 | return true; |
252 | } |
253 | return JSObject::getOwnPropertySlotByIndex(object, state, index, slot); |
254 | } |
255 | |
256 | void JSHTMLFrameSetElement::getOwnPropertyNames(JSObject* object, ExecState* state, PropertyNameArray& propertyNames, EnumerationMode mode) |
257 | { |
258 | auto* thisObject = jsCast<JSHTMLFrameSetElement*>(object); |
259 | ASSERT_GC_OBJECT_INHERITS(object, info()); |
260 | for (auto& propertyName : thisObject->wrapped().supportedPropertyNames()) |
261 | propertyNames.add(Identifier::fromString(state, propertyName)); |
262 | JSObject::getOwnPropertyNames(object, state, propertyNames, mode); |
263 | } |
264 | |
265 | template<> inline JSHTMLFrameSetElement* IDLAttribute<JSHTMLFrameSetElement>::cast(ExecState& state, EncodedJSValue thisValue) |
266 | { |
267 | return jsDynamicCast<JSHTMLFrameSetElement*>(state.vm(), JSValue::decode(thisValue)); |
268 | } |
269 | |
270 | EncodedJSValue jsHTMLFrameSetElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
271 | { |
272 | VM& vm = state->vm(); |
273 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
274 | auto* prototype = jsDynamicCast<JSHTMLFrameSetElementPrototype*>(vm, JSValue::decode(thisValue)); |
275 | if (UNLIKELY(!prototype)) |
276 | return throwVMTypeError(state, throwScope); |
277 | return JSValue::encode(JSHTMLFrameSetElement::getConstructor(state->vm(), prototype->globalObject())); |
278 | } |
279 | |
280 | bool setJSHTMLFrameSetElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
281 | { |
282 | VM& vm = state->vm(); |
283 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
284 | auto* prototype = jsDynamicCast<JSHTMLFrameSetElementPrototype*>(vm, JSValue::decode(thisValue)); |
285 | if (UNLIKELY(!prototype)) { |
286 | throwVMTypeError(state, throwScope); |
287 | return false; |
288 | } |
289 | // Shadowing a built-in constructor |
290 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
291 | } |
292 | |
293 | static inline JSValue jsHTMLFrameSetElementColsGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
294 | { |
295 | UNUSED_PARAM(throwScope); |
296 | UNUSED_PARAM(state); |
297 | auto& impl = thisObject.wrapped(); |
298 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::colsAttr)); |
299 | return result; |
300 | } |
301 | |
302 | EncodedJSValue jsHTMLFrameSetElementCols(ExecState* state, EncodedJSValue thisValue, PropertyName) |
303 | { |
304 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementColsGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "cols" ); |
305 | } |
306 | |
307 | static inline bool setJSHTMLFrameSetElementColsSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
308 | { |
309 | UNUSED_PARAM(throwScope); |
310 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
311 | auto& impl = thisObject.wrapped(); |
312 | auto nativeValue = convert<IDLDOMString>(state, value); |
313 | RETURN_IF_EXCEPTION(throwScope, false); |
314 | AttributeSetter::call(state, throwScope, [&] { |
315 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::colsAttr, WTFMove(nativeValue)); |
316 | }); |
317 | return true; |
318 | } |
319 | |
320 | bool setJSHTMLFrameSetElementCols(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
321 | { |
322 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementColsSetter>(*state, thisValue, encodedValue, "cols" ); |
323 | } |
324 | |
325 | static inline JSValue jsHTMLFrameSetElementRowsGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
326 | { |
327 | UNUSED_PARAM(throwScope); |
328 | UNUSED_PARAM(state); |
329 | auto& impl = thisObject.wrapped(); |
330 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::rowsAttr)); |
331 | return result; |
332 | } |
333 | |
334 | EncodedJSValue jsHTMLFrameSetElementRows(ExecState* state, EncodedJSValue thisValue, PropertyName) |
335 | { |
336 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementRowsGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "rows" ); |
337 | } |
338 | |
339 | static inline bool setJSHTMLFrameSetElementRowsSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
340 | { |
341 | UNUSED_PARAM(throwScope); |
342 | CustomElementReactionDisallowedScope customElementReactionDisallowedScope; |
343 | auto& impl = thisObject.wrapped(); |
344 | auto nativeValue = convert<IDLDOMString>(state, value); |
345 | RETURN_IF_EXCEPTION(throwScope, false); |
346 | AttributeSetter::call(state, throwScope, [&] { |
347 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::rowsAttr, WTFMove(nativeValue)); |
348 | }); |
349 | return true; |
350 | } |
351 | |
352 | bool setJSHTMLFrameSetElementRows(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
353 | { |
354 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementRowsSetter>(*state, thisValue, encodedValue, "rows" ); |
355 | } |
356 | |
357 | static inline JSValue jsHTMLFrameSetElementOnblurGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
358 | { |
359 | UNUSED_PARAM(throwScope); |
360 | UNUSED_PARAM(state); |
361 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().blurEvent, worldForDOMObject(thisObject)); |
362 | } |
363 | |
364 | EncodedJSValue jsHTMLFrameSetElementOnblur(ExecState* state, EncodedJSValue thisValue, PropertyName) |
365 | { |
366 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnblurGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onblur" ); |
367 | } |
368 | |
369 | static inline bool setJSHTMLFrameSetElementOnblurSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
370 | { |
371 | UNUSED_PARAM(throwScope); |
372 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().blurEvent, value); |
373 | return true; |
374 | } |
375 | |
376 | bool setJSHTMLFrameSetElementOnblur(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
377 | { |
378 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnblurSetter>(*state, thisValue, encodedValue, "onblur" ); |
379 | } |
380 | |
381 | static inline JSValue jsHTMLFrameSetElementOnerrorGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
382 | { |
383 | UNUSED_PARAM(throwScope); |
384 | UNUSED_PARAM(state); |
385 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().errorEvent, worldForDOMObject(thisObject)); |
386 | } |
387 | |
388 | EncodedJSValue jsHTMLFrameSetElementOnerror(ExecState* state, EncodedJSValue thisValue, PropertyName) |
389 | { |
390 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnerrorGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onerror" ); |
391 | } |
392 | |
393 | static inline bool setJSHTMLFrameSetElementOnerrorSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
394 | { |
395 | UNUSED_PARAM(throwScope); |
396 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().errorEvent, value); |
397 | return true; |
398 | } |
399 | |
400 | bool setJSHTMLFrameSetElementOnerror(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
401 | { |
402 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnerrorSetter>(*state, thisValue, encodedValue, "onerror" ); |
403 | } |
404 | |
405 | static inline JSValue jsHTMLFrameSetElementOnfocusGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
406 | { |
407 | UNUSED_PARAM(throwScope); |
408 | UNUSED_PARAM(state); |
409 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().focusEvent, worldForDOMObject(thisObject)); |
410 | } |
411 | |
412 | EncodedJSValue jsHTMLFrameSetElementOnfocus(ExecState* state, EncodedJSValue thisValue, PropertyName) |
413 | { |
414 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnfocusGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onfocus" ); |
415 | } |
416 | |
417 | static inline bool setJSHTMLFrameSetElementOnfocusSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
418 | { |
419 | UNUSED_PARAM(throwScope); |
420 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().focusEvent, value); |
421 | return true; |
422 | } |
423 | |
424 | bool setJSHTMLFrameSetElementOnfocus(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
425 | { |
426 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnfocusSetter>(*state, thisValue, encodedValue, "onfocus" ); |
427 | } |
428 | |
429 | static inline JSValue jsHTMLFrameSetElementOnfocusinGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
430 | { |
431 | UNUSED_PARAM(throwScope); |
432 | UNUSED_PARAM(state); |
433 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().focusinEvent, worldForDOMObject(thisObject)); |
434 | } |
435 | |
436 | EncodedJSValue jsHTMLFrameSetElementOnfocusin(ExecState* state, EncodedJSValue thisValue, PropertyName) |
437 | { |
438 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnfocusinGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onfocusin" ); |
439 | } |
440 | |
441 | static inline bool setJSHTMLFrameSetElementOnfocusinSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
442 | { |
443 | UNUSED_PARAM(throwScope); |
444 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().focusinEvent, value); |
445 | return true; |
446 | } |
447 | |
448 | bool setJSHTMLFrameSetElementOnfocusin(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
449 | { |
450 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnfocusinSetter>(*state, thisValue, encodedValue, "onfocusin" ); |
451 | } |
452 | |
453 | static inline JSValue jsHTMLFrameSetElementOnfocusoutGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
454 | { |
455 | UNUSED_PARAM(throwScope); |
456 | UNUSED_PARAM(state); |
457 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().focusoutEvent, worldForDOMObject(thisObject)); |
458 | } |
459 | |
460 | EncodedJSValue jsHTMLFrameSetElementOnfocusout(ExecState* state, EncodedJSValue thisValue, PropertyName) |
461 | { |
462 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnfocusoutGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onfocusout" ); |
463 | } |
464 | |
465 | static inline bool setJSHTMLFrameSetElementOnfocusoutSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
466 | { |
467 | UNUSED_PARAM(throwScope); |
468 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().focusoutEvent, value); |
469 | return true; |
470 | } |
471 | |
472 | bool setJSHTMLFrameSetElementOnfocusout(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
473 | { |
474 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnfocusoutSetter>(*state, thisValue, encodedValue, "onfocusout" ); |
475 | } |
476 | |
477 | static inline JSValue jsHTMLFrameSetElementOnloadGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
478 | { |
479 | UNUSED_PARAM(throwScope); |
480 | UNUSED_PARAM(state); |
481 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().loadEvent, worldForDOMObject(thisObject)); |
482 | } |
483 | |
484 | EncodedJSValue jsHTMLFrameSetElementOnload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
485 | { |
486 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnloadGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onload" ); |
487 | } |
488 | |
489 | static inline bool setJSHTMLFrameSetElementOnloadSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
490 | { |
491 | UNUSED_PARAM(throwScope); |
492 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().loadEvent, value); |
493 | return true; |
494 | } |
495 | |
496 | bool setJSHTMLFrameSetElementOnload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
497 | { |
498 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnloadSetter>(*state, thisValue, encodedValue, "onload" ); |
499 | } |
500 | |
501 | static inline JSValue jsHTMLFrameSetElementOnresizeGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
502 | { |
503 | UNUSED_PARAM(throwScope); |
504 | UNUSED_PARAM(state); |
505 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().resizeEvent, worldForDOMObject(thisObject)); |
506 | } |
507 | |
508 | EncodedJSValue jsHTMLFrameSetElementOnresize(ExecState* state, EncodedJSValue thisValue, PropertyName) |
509 | { |
510 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnresizeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onresize" ); |
511 | } |
512 | |
513 | static inline bool setJSHTMLFrameSetElementOnresizeSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
514 | { |
515 | UNUSED_PARAM(throwScope); |
516 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().resizeEvent, value); |
517 | return true; |
518 | } |
519 | |
520 | bool setJSHTMLFrameSetElementOnresize(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
521 | { |
522 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnresizeSetter>(*state, thisValue, encodedValue, "onresize" ); |
523 | } |
524 | |
525 | static inline JSValue jsHTMLFrameSetElementOnscrollGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
526 | { |
527 | UNUSED_PARAM(throwScope); |
528 | UNUSED_PARAM(state); |
529 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().scrollEvent, worldForDOMObject(thisObject)); |
530 | } |
531 | |
532 | EncodedJSValue jsHTMLFrameSetElementOnscroll(ExecState* state, EncodedJSValue thisValue, PropertyName) |
533 | { |
534 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnscrollGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onscroll" ); |
535 | } |
536 | |
537 | static inline bool setJSHTMLFrameSetElementOnscrollSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
538 | { |
539 | UNUSED_PARAM(throwScope); |
540 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().scrollEvent, value); |
541 | return true; |
542 | } |
543 | |
544 | bool setJSHTMLFrameSetElementOnscroll(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
545 | { |
546 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnscrollSetter>(*state, thisValue, encodedValue, "onscroll" ); |
547 | } |
548 | |
549 | static inline JSValue jsHTMLFrameSetElementOnafterprintGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
550 | { |
551 | UNUSED_PARAM(throwScope); |
552 | UNUSED_PARAM(state); |
553 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().afterprintEvent, worldForDOMObject(thisObject)); |
554 | } |
555 | |
556 | EncodedJSValue jsHTMLFrameSetElementOnafterprint(ExecState* state, EncodedJSValue thisValue, PropertyName) |
557 | { |
558 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnafterprintGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onafterprint" ); |
559 | } |
560 | |
561 | static inline bool setJSHTMLFrameSetElementOnafterprintSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
562 | { |
563 | UNUSED_PARAM(throwScope); |
564 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().afterprintEvent, value); |
565 | return true; |
566 | } |
567 | |
568 | bool setJSHTMLFrameSetElementOnafterprint(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
569 | { |
570 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnafterprintSetter>(*state, thisValue, encodedValue, "onafterprint" ); |
571 | } |
572 | |
573 | static inline JSValue jsHTMLFrameSetElementOnbeforeprintGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
574 | { |
575 | UNUSED_PARAM(throwScope); |
576 | UNUSED_PARAM(state); |
577 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().beforeprintEvent, worldForDOMObject(thisObject)); |
578 | } |
579 | |
580 | EncodedJSValue jsHTMLFrameSetElementOnbeforeprint(ExecState* state, EncodedJSValue thisValue, PropertyName) |
581 | { |
582 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnbeforeprintGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onbeforeprint" ); |
583 | } |
584 | |
585 | static inline bool setJSHTMLFrameSetElementOnbeforeprintSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
586 | { |
587 | UNUSED_PARAM(throwScope); |
588 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().beforeprintEvent, value); |
589 | return true; |
590 | } |
591 | |
592 | bool setJSHTMLFrameSetElementOnbeforeprint(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
593 | { |
594 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnbeforeprintSetter>(*state, thisValue, encodedValue, "onbeforeprint" ); |
595 | } |
596 | |
597 | static inline JSValue jsHTMLFrameSetElementOnbeforeunloadGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
598 | { |
599 | UNUSED_PARAM(throwScope); |
600 | UNUSED_PARAM(state); |
601 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().beforeunloadEvent, worldForDOMObject(thisObject)); |
602 | } |
603 | |
604 | EncodedJSValue jsHTMLFrameSetElementOnbeforeunload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
605 | { |
606 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnbeforeunloadGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onbeforeunload" ); |
607 | } |
608 | |
609 | static inline bool setJSHTMLFrameSetElementOnbeforeunloadSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
610 | { |
611 | UNUSED_PARAM(throwScope); |
612 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().beforeunloadEvent, value); |
613 | return true; |
614 | } |
615 | |
616 | bool setJSHTMLFrameSetElementOnbeforeunload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
617 | { |
618 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnbeforeunloadSetter>(*state, thisValue, encodedValue, "onbeforeunload" ); |
619 | } |
620 | |
621 | static inline JSValue jsHTMLFrameSetElementOnhashchangeGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
622 | { |
623 | UNUSED_PARAM(throwScope); |
624 | UNUSED_PARAM(state); |
625 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().hashchangeEvent, worldForDOMObject(thisObject)); |
626 | } |
627 | |
628 | EncodedJSValue jsHTMLFrameSetElementOnhashchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
629 | { |
630 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnhashchangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onhashchange" ); |
631 | } |
632 | |
633 | static inline bool setJSHTMLFrameSetElementOnhashchangeSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
634 | { |
635 | UNUSED_PARAM(throwScope); |
636 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().hashchangeEvent, value); |
637 | return true; |
638 | } |
639 | |
640 | bool setJSHTMLFrameSetElementOnhashchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
641 | { |
642 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnhashchangeSetter>(*state, thisValue, encodedValue, "onhashchange" ); |
643 | } |
644 | |
645 | static inline JSValue jsHTMLFrameSetElementOnlanguagechangeGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
646 | { |
647 | UNUSED_PARAM(throwScope); |
648 | UNUSED_PARAM(state); |
649 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().languagechangeEvent, worldForDOMObject(thisObject)); |
650 | } |
651 | |
652 | EncodedJSValue jsHTMLFrameSetElementOnlanguagechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
653 | { |
654 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnlanguagechangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onlanguagechange" ); |
655 | } |
656 | |
657 | static inline bool setJSHTMLFrameSetElementOnlanguagechangeSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
658 | { |
659 | UNUSED_PARAM(throwScope); |
660 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().languagechangeEvent, value); |
661 | return true; |
662 | } |
663 | |
664 | bool setJSHTMLFrameSetElementOnlanguagechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
665 | { |
666 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnlanguagechangeSetter>(*state, thisValue, encodedValue, "onlanguagechange" ); |
667 | } |
668 | |
669 | static inline JSValue jsHTMLFrameSetElementOnmessageGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
670 | { |
671 | UNUSED_PARAM(throwScope); |
672 | UNUSED_PARAM(state); |
673 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().messageEvent, worldForDOMObject(thisObject)); |
674 | } |
675 | |
676 | EncodedJSValue jsHTMLFrameSetElementOnmessage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
677 | { |
678 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnmessageGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmessage" ); |
679 | } |
680 | |
681 | static inline bool setJSHTMLFrameSetElementOnmessageSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
682 | { |
683 | UNUSED_PARAM(throwScope); |
684 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().messageEvent, value); |
685 | return true; |
686 | } |
687 | |
688 | bool setJSHTMLFrameSetElementOnmessage(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
689 | { |
690 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnmessageSetter>(*state, thisValue, encodedValue, "onmessage" ); |
691 | } |
692 | |
693 | static inline JSValue jsHTMLFrameSetElementOnofflineGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
694 | { |
695 | UNUSED_PARAM(throwScope); |
696 | UNUSED_PARAM(state); |
697 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().offlineEvent, worldForDOMObject(thisObject)); |
698 | } |
699 | |
700 | EncodedJSValue jsHTMLFrameSetElementOnoffline(ExecState* state, EncodedJSValue thisValue, PropertyName) |
701 | { |
702 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnofflineGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onoffline" ); |
703 | } |
704 | |
705 | static inline bool setJSHTMLFrameSetElementOnofflineSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
706 | { |
707 | UNUSED_PARAM(throwScope); |
708 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().offlineEvent, value); |
709 | return true; |
710 | } |
711 | |
712 | bool setJSHTMLFrameSetElementOnoffline(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
713 | { |
714 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnofflineSetter>(*state, thisValue, encodedValue, "onoffline" ); |
715 | } |
716 | |
717 | static inline JSValue jsHTMLFrameSetElementOnonlineGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
718 | { |
719 | UNUSED_PARAM(throwScope); |
720 | UNUSED_PARAM(state); |
721 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().onlineEvent, worldForDOMObject(thisObject)); |
722 | } |
723 | |
724 | EncodedJSValue jsHTMLFrameSetElementOnonline(ExecState* state, EncodedJSValue thisValue, PropertyName) |
725 | { |
726 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnonlineGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ononline" ); |
727 | } |
728 | |
729 | static inline bool setJSHTMLFrameSetElementOnonlineSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
730 | { |
731 | UNUSED_PARAM(throwScope); |
732 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().onlineEvent, value); |
733 | return true; |
734 | } |
735 | |
736 | bool setJSHTMLFrameSetElementOnonline(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
737 | { |
738 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnonlineSetter>(*state, thisValue, encodedValue, "ononline" ); |
739 | } |
740 | |
741 | static inline JSValue jsHTMLFrameSetElementOnpagehideGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
742 | { |
743 | UNUSED_PARAM(throwScope); |
744 | UNUSED_PARAM(state); |
745 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().pagehideEvent, worldForDOMObject(thisObject)); |
746 | } |
747 | |
748 | EncodedJSValue jsHTMLFrameSetElementOnpagehide(ExecState* state, EncodedJSValue thisValue, PropertyName) |
749 | { |
750 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnpagehideGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpagehide" ); |
751 | } |
752 | |
753 | static inline bool setJSHTMLFrameSetElementOnpagehideSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
754 | { |
755 | UNUSED_PARAM(throwScope); |
756 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pagehideEvent, value); |
757 | return true; |
758 | } |
759 | |
760 | bool setJSHTMLFrameSetElementOnpagehide(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
761 | { |
762 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnpagehideSetter>(*state, thisValue, encodedValue, "onpagehide" ); |
763 | } |
764 | |
765 | static inline JSValue jsHTMLFrameSetElementOnpageshowGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
766 | { |
767 | UNUSED_PARAM(throwScope); |
768 | UNUSED_PARAM(state); |
769 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().pageshowEvent, worldForDOMObject(thisObject)); |
770 | } |
771 | |
772 | EncodedJSValue jsHTMLFrameSetElementOnpageshow(ExecState* state, EncodedJSValue thisValue, PropertyName) |
773 | { |
774 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnpageshowGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpageshow" ); |
775 | } |
776 | |
777 | static inline bool setJSHTMLFrameSetElementOnpageshowSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
778 | { |
779 | UNUSED_PARAM(throwScope); |
780 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pageshowEvent, value); |
781 | return true; |
782 | } |
783 | |
784 | bool setJSHTMLFrameSetElementOnpageshow(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
785 | { |
786 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnpageshowSetter>(*state, thisValue, encodedValue, "onpageshow" ); |
787 | } |
788 | |
789 | static inline JSValue jsHTMLFrameSetElementOnpopstateGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
790 | { |
791 | UNUSED_PARAM(throwScope); |
792 | UNUSED_PARAM(state); |
793 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().popstateEvent, worldForDOMObject(thisObject)); |
794 | } |
795 | |
796 | EncodedJSValue jsHTMLFrameSetElementOnpopstate(ExecState* state, EncodedJSValue thisValue, PropertyName) |
797 | { |
798 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnpopstateGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpopstate" ); |
799 | } |
800 | |
801 | static inline bool setJSHTMLFrameSetElementOnpopstateSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
802 | { |
803 | UNUSED_PARAM(throwScope); |
804 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().popstateEvent, value); |
805 | return true; |
806 | } |
807 | |
808 | bool setJSHTMLFrameSetElementOnpopstate(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
809 | { |
810 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnpopstateSetter>(*state, thisValue, encodedValue, "onpopstate" ); |
811 | } |
812 | |
813 | static inline JSValue jsHTMLFrameSetElementOnstorageGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
814 | { |
815 | UNUSED_PARAM(throwScope); |
816 | UNUSED_PARAM(state); |
817 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().storageEvent, worldForDOMObject(thisObject)); |
818 | } |
819 | |
820 | EncodedJSValue jsHTMLFrameSetElementOnstorage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
821 | { |
822 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnstorageGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onstorage" ); |
823 | } |
824 | |
825 | static inline bool setJSHTMLFrameSetElementOnstorageSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
826 | { |
827 | UNUSED_PARAM(throwScope); |
828 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().storageEvent, value); |
829 | return true; |
830 | } |
831 | |
832 | bool setJSHTMLFrameSetElementOnstorage(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
833 | { |
834 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnstorageSetter>(*state, thisValue, encodedValue, "onstorage" ); |
835 | } |
836 | |
837 | static inline JSValue jsHTMLFrameSetElementOnunloadGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
838 | { |
839 | UNUSED_PARAM(throwScope); |
840 | UNUSED_PARAM(state); |
841 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().unloadEvent, worldForDOMObject(thisObject)); |
842 | } |
843 | |
844 | EncodedJSValue jsHTMLFrameSetElementOnunload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
845 | { |
846 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnunloadGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onunload" ); |
847 | } |
848 | |
849 | static inline bool setJSHTMLFrameSetElementOnunloadSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
850 | { |
851 | UNUSED_PARAM(throwScope); |
852 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().unloadEvent, value); |
853 | return true; |
854 | } |
855 | |
856 | bool setJSHTMLFrameSetElementOnunload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
857 | { |
858 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnunloadSetter>(*state, thisValue, encodedValue, "onunload" ); |
859 | } |
860 | |
861 | #if ENABLE(ORIENTATION_EVENTS) |
862 | static inline JSValue jsHTMLFrameSetElementOnorientationchangeGetter(ExecState& state, JSHTMLFrameSetElement& thisObject, ThrowScope& throwScope) |
863 | { |
864 | UNUSED_PARAM(throwScope); |
865 | UNUSED_PARAM(state); |
866 | return windowEventHandlerAttribute(thisObject.wrapped(), eventNames().orientationchangeEvent, worldForDOMObject(thisObject)); |
867 | } |
868 | |
869 | EncodedJSValue jsHTMLFrameSetElementOnorientationchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
870 | { |
871 | return IDLAttribute<JSHTMLFrameSetElement>::get<jsHTMLFrameSetElementOnorientationchangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onorientationchange" ); |
872 | } |
873 | |
874 | #endif |
875 | |
876 | #if ENABLE(ORIENTATION_EVENTS) |
877 | static inline bool setJSHTMLFrameSetElementOnorientationchangeSetter(ExecState& state, JSHTMLFrameSetElement& thisObject, JSValue value, ThrowScope& throwScope) |
878 | { |
879 | UNUSED_PARAM(throwScope); |
880 | setWindowEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().orientationchangeEvent, value); |
881 | return true; |
882 | } |
883 | |
884 | bool setJSHTMLFrameSetElementOnorientationchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
885 | { |
886 | return IDLAttribute<JSHTMLFrameSetElement>::set<setJSHTMLFrameSetElementOnorientationchangeSetter>(*state, thisValue, encodedValue, "onorientationchange" ); |
887 | } |
888 | |
889 | #endif |
890 | |
891 | void JSHTMLFrameSetElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
892 | { |
893 | auto* thisObject = jsCast<JSHTMLFrameSetElement*>(cell); |
894 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
895 | if (thisObject->scriptExecutionContext()) |
896 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
897 | Base::heapSnapshot(cell, builder); |
898 | } |
899 | |
900 | |
901 | } |
902 | |