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 "JSWebKitCSSMatrix.h"
23
24#include "JSDOMAttribute.h"
25#include "JSDOMBinding.h"
26#include "JSDOMConstructor.h"
27#include "JSDOMConvertInterface.h"
28#include "JSDOMConvertNullable.h"
29#include "JSDOMConvertNumbers.h"
30#include "JSDOMConvertStrings.h"
31#include "JSDOMExceptionHandling.h"
32#include "JSDOMGlobalObject.h"
33#include "JSDOMOperation.h"
34#include "JSDOMWrapperCache.h"
35#include "JSWebKitCSSMatrix.h"
36#include "ScriptExecutionContext.h"
37#include <JavaScriptCore/FunctionPrototype.h>
38#include <JavaScriptCore/HeapSnapshotBuilder.h>
39#include <JavaScriptCore/JSCInlines.h>
40#include <wtf/GetPtr.h>
41#include <wtf/PointerPreparations.h>
42#include <wtf/URL.h>
43
44
45namespace WebCore {
46using namespace JSC;
47
48// Functions
49
50JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSetMatrixValue(JSC::ExecState*);
51JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionMultiply(JSC::ExecState*);
52JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionInverse(JSC::ExecState*);
53JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionTranslate(JSC::ExecState*);
54JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionScale(JSC::ExecState*);
55JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotate(JSC::ExecState*);
56JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngle(JSC::ExecState*);
57JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewX(JSC::ExecState*);
58JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewY(JSC::ExecState*);
59JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionToString(JSC::ExecState*);
60
61// Attributes
62
63JSC::EncodedJSValue jsWebKitCSSMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
64bool setJSWebKitCSSMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
65JSC::EncodedJSValue jsWebKitCSSMatrixA(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
66bool setJSWebKitCSSMatrixA(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
67JSC::EncodedJSValue jsWebKitCSSMatrixB(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
68bool setJSWebKitCSSMatrixB(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
69JSC::EncodedJSValue jsWebKitCSSMatrixC(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
70bool setJSWebKitCSSMatrixC(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
71JSC::EncodedJSValue jsWebKitCSSMatrixD(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
72bool setJSWebKitCSSMatrixD(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
73JSC::EncodedJSValue jsWebKitCSSMatrixE(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
74bool setJSWebKitCSSMatrixE(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
75JSC::EncodedJSValue jsWebKitCSSMatrixF(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
76bool setJSWebKitCSSMatrixF(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
77JSC::EncodedJSValue jsWebKitCSSMatrixM11(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
78bool setJSWebKitCSSMatrixM11(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
79JSC::EncodedJSValue jsWebKitCSSMatrixM12(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
80bool setJSWebKitCSSMatrixM12(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
81JSC::EncodedJSValue jsWebKitCSSMatrixM13(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
82bool setJSWebKitCSSMatrixM13(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
83JSC::EncodedJSValue jsWebKitCSSMatrixM14(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
84bool setJSWebKitCSSMatrixM14(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
85JSC::EncodedJSValue jsWebKitCSSMatrixM21(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
86bool setJSWebKitCSSMatrixM21(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
87JSC::EncodedJSValue jsWebKitCSSMatrixM22(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
88bool setJSWebKitCSSMatrixM22(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
89JSC::EncodedJSValue jsWebKitCSSMatrixM23(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
90bool setJSWebKitCSSMatrixM23(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
91JSC::EncodedJSValue jsWebKitCSSMatrixM24(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
92bool setJSWebKitCSSMatrixM24(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
93JSC::EncodedJSValue jsWebKitCSSMatrixM31(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
94bool setJSWebKitCSSMatrixM31(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
95JSC::EncodedJSValue jsWebKitCSSMatrixM32(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
96bool setJSWebKitCSSMatrixM32(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
97JSC::EncodedJSValue jsWebKitCSSMatrixM33(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
98bool setJSWebKitCSSMatrixM33(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
99JSC::EncodedJSValue jsWebKitCSSMatrixM34(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
100bool setJSWebKitCSSMatrixM34(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
101JSC::EncodedJSValue jsWebKitCSSMatrixM41(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
102bool setJSWebKitCSSMatrixM41(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
103JSC::EncodedJSValue jsWebKitCSSMatrixM42(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
104bool setJSWebKitCSSMatrixM42(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
105JSC::EncodedJSValue jsWebKitCSSMatrixM43(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
106bool setJSWebKitCSSMatrixM43(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
107JSC::EncodedJSValue jsWebKitCSSMatrixM44(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
108bool setJSWebKitCSSMatrixM44(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
109
110class JSWebKitCSSMatrixPrototype : public JSC::JSNonFinalObject {
111public:
112 using Base = JSC::JSNonFinalObject;
113 static JSWebKitCSSMatrixPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure)
114 {
115 JSWebKitCSSMatrixPrototype* ptr = new (NotNull, JSC::allocateCell<JSWebKitCSSMatrixPrototype>(vm.heap)) JSWebKitCSSMatrixPrototype(vm, globalObject, structure);
116 ptr->finishCreation(vm);
117 return ptr;
118 }
119
120 DECLARE_INFO;
121 static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
122 {
123 return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
124 }
125
126private:
127 JSWebKitCSSMatrixPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure)
128 : JSC::JSNonFinalObject(vm, structure)
129 {
130 }
131
132 void finishCreation(JSC::VM&);
133};
134
135using JSWebKitCSSMatrixConstructor = JSDOMConstructor<JSWebKitCSSMatrix>;
136
137template<> EncodedJSValue JSC_HOST_CALL JSWebKitCSSMatrixConstructor::construct(ExecState* state)
138{
139 VM& vm = state->vm();
140 auto throwScope = DECLARE_THROW_SCOPE(vm);
141 UNUSED_PARAM(throwScope);
142 auto* castedThis = jsCast<JSWebKitCSSMatrixConstructor*>(state->jsCallee());
143 ASSERT(castedThis);
144 auto cssValue = state->argument(0).isUndefined() ? String() : convert<IDLDOMString>(*state, state->uncheckedArgument(0));
145 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
146 auto object = WebKitCSSMatrix::create(WTFMove(cssValue));
147 return JSValue::encode(toJSNewlyCreated<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), throwScope, WTFMove(object)));
148}
149
150template<> JSValue JSWebKitCSSMatrixConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject)
151{
152 UNUSED_PARAM(vm);
153 return globalObject.functionPrototype();
154}
155
156template<> void JSWebKitCSSMatrixConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject)
157{
158 putDirect(vm, vm.propertyNames->prototype, JSWebKitCSSMatrix::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
159 putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("WebKitCSSMatrix"_s)), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
160 putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
161}
162
163template<> const ClassInfo JSWebKitCSSMatrixConstructor::s_info = { "WebKitCSSMatrix", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSWebKitCSSMatrixConstructor) };
164
165/* Hash table for prototype */
166
167static const HashTableValue JSWebKitCSSMatrixPrototypeTableValues[] =
168{
169 { "constructor", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixConstructor) } },
170 { "a", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixA), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixA) } },
171 { "b", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixB), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixB) } },
172 { "c", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixC), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixC) } },
173 { "d", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixD), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixD) } },
174 { "e", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixE), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixE) } },
175 { "f", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixF), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixF) } },
176 { "m11", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM11), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM11) } },
177 { "m12", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM12), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM12) } },
178 { "m13", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM13), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM13) } },
179 { "m14", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM14), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM14) } },
180 { "m21", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM21), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM21) } },
181 { "m22", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM22), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM22) } },
182 { "m23", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM23), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM23) } },
183 { "m24", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM24), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM24) } },
184 { "m31", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM31), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM31) } },
185 { "m32", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM32), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM32) } },
186 { "m33", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM33), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM33) } },
187 { "m34", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM34), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM34) } },
188 { "m41", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM41), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM41) } },
189 { "m42", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM42), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM42) } },
190 { "m43", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM43), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM43) } },
191 { "m44", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM44), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSWebKitCSSMatrixM44) } },
192 { "setMatrixValue", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionSetMatrixValue), (intptr_t) (0) } },
193 { "multiply", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionMultiply), (intptr_t) (0) } },
194 { "inverse", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionInverse), (intptr_t) (0) } },
195 { "translate", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionTranslate), (intptr_t) (0) } },
196 { "scale", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionScale), (intptr_t) (0) } },
197 { "rotate", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionRotate), (intptr_t) (0) } },
198 { "rotateAxisAngle", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngle), (intptr_t) (0) } },
199 { "skewX", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionSkewX), (intptr_t) (0) } },
200 { "skewY", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionSkewY), (intptr_t) (0) } },
201 { "toString", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsWebKitCSSMatrixPrototypeFunctionToString), (intptr_t) (0) } },
202};
203
204const ClassInfo JSWebKitCSSMatrixPrototype::s_info = { "WebKitCSSMatrixPrototype", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSWebKitCSSMatrixPrototype) };
205
206void JSWebKitCSSMatrixPrototype::finishCreation(VM& vm)
207{
208 Base::finishCreation(vm);
209 reifyStaticProperties(vm, JSWebKitCSSMatrix::info(), JSWebKitCSSMatrixPrototypeTableValues, *this);
210}
211
212const ClassInfo JSWebKitCSSMatrix::s_info = { "WebKitCSSMatrix", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSWebKitCSSMatrix) };
213
214JSWebKitCSSMatrix::JSWebKitCSSMatrix(Structure* structure, JSDOMGlobalObject& globalObject, Ref<WebKitCSSMatrix>&& impl)
215 : JSDOMWrapper<WebKitCSSMatrix>(structure, globalObject, WTFMove(impl))
216{
217}
218
219void JSWebKitCSSMatrix::finishCreation(VM& vm)
220{
221 Base::finishCreation(vm);
222 ASSERT(inherits(vm, info()));
223
224}
225
226JSObject* JSWebKitCSSMatrix::createPrototype(VM& vm, JSDOMGlobalObject& globalObject)
227{
228 return JSWebKitCSSMatrixPrototype::create(vm, &globalObject, JSWebKitCSSMatrixPrototype::createStructure(vm, &globalObject, globalObject.objectPrototype()));
229}
230
231JSObject* JSWebKitCSSMatrix::prototype(VM& vm, JSDOMGlobalObject& globalObject)
232{
233 return getDOMPrototype<JSWebKitCSSMatrix>(vm, globalObject);
234}
235
236JSValue JSWebKitCSSMatrix::getConstructor(VM& vm, const JSGlobalObject* globalObject)
237{
238 return getDOMConstructor<JSWebKitCSSMatrixConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject));
239}
240
241void JSWebKitCSSMatrix::destroy(JSC::JSCell* cell)
242{
243 JSWebKitCSSMatrix* thisObject = static_cast<JSWebKitCSSMatrix*>(cell);
244 thisObject->JSWebKitCSSMatrix::~JSWebKitCSSMatrix();
245}
246
247template<> inline JSWebKitCSSMatrix* IDLAttribute<JSWebKitCSSMatrix>::cast(ExecState& state, EncodedJSValue thisValue)
248{
249 return jsDynamicCast<JSWebKitCSSMatrix*>(state.vm(), JSValue::decode(thisValue));
250}
251
252template<> inline JSWebKitCSSMatrix* IDLOperation<JSWebKitCSSMatrix>::cast(ExecState& state)
253{
254 return jsDynamicCast<JSWebKitCSSMatrix*>(state.vm(), state.thisValue());
255}
256
257EncodedJSValue jsWebKitCSSMatrixConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName)
258{
259 VM& vm = state->vm();
260 auto throwScope = DECLARE_THROW_SCOPE(vm);
261 auto* prototype = jsDynamicCast<JSWebKitCSSMatrixPrototype*>(vm, JSValue::decode(thisValue));
262 if (UNLIKELY(!prototype))
263 return throwVMTypeError(state, throwScope);
264 return JSValue::encode(JSWebKitCSSMatrix::getConstructor(state->vm(), prototype->globalObject()));
265}
266
267bool setJSWebKitCSSMatrixConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
268{
269 VM& vm = state->vm();
270 auto throwScope = DECLARE_THROW_SCOPE(vm);
271 auto* prototype = jsDynamicCast<JSWebKitCSSMatrixPrototype*>(vm, JSValue::decode(thisValue));
272 if (UNLIKELY(!prototype)) {
273 throwVMTypeError(state, throwScope);
274 return false;
275 }
276 // Shadowing a built-in constructor
277 return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue));
278}
279
280static inline JSValue jsWebKitCSSMatrixAGetter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
281{
282 UNUSED_PARAM(throwScope);
283 UNUSED_PARAM(state);
284 auto& impl = thisObject.wrapped();
285 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.a());
286 return result;
287}
288
289EncodedJSValue jsWebKitCSSMatrixA(ExecState* state, EncodedJSValue thisValue, PropertyName)
290{
291 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixAGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "a");
292}
293
294static inline bool setJSWebKitCSSMatrixASetter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
295{
296 UNUSED_PARAM(throwScope);
297 auto& impl = thisObject.wrapped();
298 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
299 RETURN_IF_EXCEPTION(throwScope, false);
300 AttributeSetter::call(state, throwScope, [&] {
301 return impl.setA(WTFMove(nativeValue));
302 });
303 return true;
304}
305
306bool setJSWebKitCSSMatrixA(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
307{
308 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixASetter>(*state, thisValue, encodedValue, "a");
309}
310
311static inline JSValue jsWebKitCSSMatrixBGetter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
312{
313 UNUSED_PARAM(throwScope);
314 UNUSED_PARAM(state);
315 auto& impl = thisObject.wrapped();
316 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.b());
317 return result;
318}
319
320EncodedJSValue jsWebKitCSSMatrixB(ExecState* state, EncodedJSValue thisValue, PropertyName)
321{
322 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixBGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "b");
323}
324
325static inline bool setJSWebKitCSSMatrixBSetter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
326{
327 UNUSED_PARAM(throwScope);
328 auto& impl = thisObject.wrapped();
329 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
330 RETURN_IF_EXCEPTION(throwScope, false);
331 AttributeSetter::call(state, throwScope, [&] {
332 return impl.setB(WTFMove(nativeValue));
333 });
334 return true;
335}
336
337bool setJSWebKitCSSMatrixB(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
338{
339 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixBSetter>(*state, thisValue, encodedValue, "b");
340}
341
342static inline JSValue jsWebKitCSSMatrixCGetter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
343{
344 UNUSED_PARAM(throwScope);
345 UNUSED_PARAM(state);
346 auto& impl = thisObject.wrapped();
347 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.c());
348 return result;
349}
350
351EncodedJSValue jsWebKitCSSMatrixC(ExecState* state, EncodedJSValue thisValue, PropertyName)
352{
353 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixCGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "c");
354}
355
356static inline bool setJSWebKitCSSMatrixCSetter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
357{
358 UNUSED_PARAM(throwScope);
359 auto& impl = thisObject.wrapped();
360 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
361 RETURN_IF_EXCEPTION(throwScope, false);
362 AttributeSetter::call(state, throwScope, [&] {
363 return impl.setC(WTFMove(nativeValue));
364 });
365 return true;
366}
367
368bool setJSWebKitCSSMatrixC(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
369{
370 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixCSetter>(*state, thisValue, encodedValue, "c");
371}
372
373static inline JSValue jsWebKitCSSMatrixDGetter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
374{
375 UNUSED_PARAM(throwScope);
376 UNUSED_PARAM(state);
377 auto& impl = thisObject.wrapped();
378 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.d());
379 return result;
380}
381
382EncodedJSValue jsWebKitCSSMatrixD(ExecState* state, EncodedJSValue thisValue, PropertyName)
383{
384 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixDGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "d");
385}
386
387static inline bool setJSWebKitCSSMatrixDSetter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
388{
389 UNUSED_PARAM(throwScope);
390 auto& impl = thisObject.wrapped();
391 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
392 RETURN_IF_EXCEPTION(throwScope, false);
393 AttributeSetter::call(state, throwScope, [&] {
394 return impl.setD(WTFMove(nativeValue));
395 });
396 return true;
397}
398
399bool setJSWebKitCSSMatrixD(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
400{
401 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixDSetter>(*state, thisValue, encodedValue, "d");
402}
403
404static inline JSValue jsWebKitCSSMatrixEGetter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
405{
406 UNUSED_PARAM(throwScope);
407 UNUSED_PARAM(state);
408 auto& impl = thisObject.wrapped();
409 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.e());
410 return result;
411}
412
413EncodedJSValue jsWebKitCSSMatrixE(ExecState* state, EncodedJSValue thisValue, PropertyName)
414{
415 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixEGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "e");
416}
417
418static inline bool setJSWebKitCSSMatrixESetter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
419{
420 UNUSED_PARAM(throwScope);
421 auto& impl = thisObject.wrapped();
422 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
423 RETURN_IF_EXCEPTION(throwScope, false);
424 AttributeSetter::call(state, throwScope, [&] {
425 return impl.setE(WTFMove(nativeValue));
426 });
427 return true;
428}
429
430bool setJSWebKitCSSMatrixE(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
431{
432 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixESetter>(*state, thisValue, encodedValue, "e");
433}
434
435static inline JSValue jsWebKitCSSMatrixFGetter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
436{
437 UNUSED_PARAM(throwScope);
438 UNUSED_PARAM(state);
439 auto& impl = thisObject.wrapped();
440 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.f());
441 return result;
442}
443
444EncodedJSValue jsWebKitCSSMatrixF(ExecState* state, EncodedJSValue thisValue, PropertyName)
445{
446 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixFGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "f");
447}
448
449static inline bool setJSWebKitCSSMatrixFSetter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
450{
451 UNUSED_PARAM(throwScope);
452 auto& impl = thisObject.wrapped();
453 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
454 RETURN_IF_EXCEPTION(throwScope, false);
455 AttributeSetter::call(state, throwScope, [&] {
456 return impl.setF(WTFMove(nativeValue));
457 });
458 return true;
459}
460
461bool setJSWebKitCSSMatrixF(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
462{
463 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixFSetter>(*state, thisValue, encodedValue, "f");
464}
465
466static inline JSValue jsWebKitCSSMatrixM11Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
467{
468 UNUSED_PARAM(throwScope);
469 UNUSED_PARAM(state);
470 auto& impl = thisObject.wrapped();
471 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m11());
472 return result;
473}
474
475EncodedJSValue jsWebKitCSSMatrixM11(ExecState* state, EncodedJSValue thisValue, PropertyName)
476{
477 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM11Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m11");
478}
479
480static inline bool setJSWebKitCSSMatrixM11Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
481{
482 UNUSED_PARAM(throwScope);
483 auto& impl = thisObject.wrapped();
484 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
485 RETURN_IF_EXCEPTION(throwScope, false);
486 AttributeSetter::call(state, throwScope, [&] {
487 return impl.setM11(WTFMove(nativeValue));
488 });
489 return true;
490}
491
492bool setJSWebKitCSSMatrixM11(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
493{
494 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM11Setter>(*state, thisValue, encodedValue, "m11");
495}
496
497static inline JSValue jsWebKitCSSMatrixM12Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
498{
499 UNUSED_PARAM(throwScope);
500 UNUSED_PARAM(state);
501 auto& impl = thisObject.wrapped();
502 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m12());
503 return result;
504}
505
506EncodedJSValue jsWebKitCSSMatrixM12(ExecState* state, EncodedJSValue thisValue, PropertyName)
507{
508 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM12Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m12");
509}
510
511static inline bool setJSWebKitCSSMatrixM12Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
512{
513 UNUSED_PARAM(throwScope);
514 auto& impl = thisObject.wrapped();
515 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
516 RETURN_IF_EXCEPTION(throwScope, false);
517 AttributeSetter::call(state, throwScope, [&] {
518 return impl.setM12(WTFMove(nativeValue));
519 });
520 return true;
521}
522
523bool setJSWebKitCSSMatrixM12(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
524{
525 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM12Setter>(*state, thisValue, encodedValue, "m12");
526}
527
528static inline JSValue jsWebKitCSSMatrixM13Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
529{
530 UNUSED_PARAM(throwScope);
531 UNUSED_PARAM(state);
532 auto& impl = thisObject.wrapped();
533 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m13());
534 return result;
535}
536
537EncodedJSValue jsWebKitCSSMatrixM13(ExecState* state, EncodedJSValue thisValue, PropertyName)
538{
539 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM13Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m13");
540}
541
542static inline bool setJSWebKitCSSMatrixM13Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
543{
544 UNUSED_PARAM(throwScope);
545 auto& impl = thisObject.wrapped();
546 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
547 RETURN_IF_EXCEPTION(throwScope, false);
548 AttributeSetter::call(state, throwScope, [&] {
549 return impl.setM13(WTFMove(nativeValue));
550 });
551 return true;
552}
553
554bool setJSWebKitCSSMatrixM13(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
555{
556 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM13Setter>(*state, thisValue, encodedValue, "m13");
557}
558
559static inline JSValue jsWebKitCSSMatrixM14Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
560{
561 UNUSED_PARAM(throwScope);
562 UNUSED_PARAM(state);
563 auto& impl = thisObject.wrapped();
564 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m14());
565 return result;
566}
567
568EncodedJSValue jsWebKitCSSMatrixM14(ExecState* state, EncodedJSValue thisValue, PropertyName)
569{
570 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM14Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m14");
571}
572
573static inline bool setJSWebKitCSSMatrixM14Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
574{
575 UNUSED_PARAM(throwScope);
576 auto& impl = thisObject.wrapped();
577 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
578 RETURN_IF_EXCEPTION(throwScope, false);
579 AttributeSetter::call(state, throwScope, [&] {
580 return impl.setM14(WTFMove(nativeValue));
581 });
582 return true;
583}
584
585bool setJSWebKitCSSMatrixM14(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
586{
587 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM14Setter>(*state, thisValue, encodedValue, "m14");
588}
589
590static inline JSValue jsWebKitCSSMatrixM21Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
591{
592 UNUSED_PARAM(throwScope);
593 UNUSED_PARAM(state);
594 auto& impl = thisObject.wrapped();
595 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m21());
596 return result;
597}
598
599EncodedJSValue jsWebKitCSSMatrixM21(ExecState* state, EncodedJSValue thisValue, PropertyName)
600{
601 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM21Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m21");
602}
603
604static inline bool setJSWebKitCSSMatrixM21Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
605{
606 UNUSED_PARAM(throwScope);
607 auto& impl = thisObject.wrapped();
608 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
609 RETURN_IF_EXCEPTION(throwScope, false);
610 AttributeSetter::call(state, throwScope, [&] {
611 return impl.setM21(WTFMove(nativeValue));
612 });
613 return true;
614}
615
616bool setJSWebKitCSSMatrixM21(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
617{
618 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM21Setter>(*state, thisValue, encodedValue, "m21");
619}
620
621static inline JSValue jsWebKitCSSMatrixM22Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
622{
623 UNUSED_PARAM(throwScope);
624 UNUSED_PARAM(state);
625 auto& impl = thisObject.wrapped();
626 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m22());
627 return result;
628}
629
630EncodedJSValue jsWebKitCSSMatrixM22(ExecState* state, EncodedJSValue thisValue, PropertyName)
631{
632 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM22Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m22");
633}
634
635static inline bool setJSWebKitCSSMatrixM22Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
636{
637 UNUSED_PARAM(throwScope);
638 auto& impl = thisObject.wrapped();
639 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
640 RETURN_IF_EXCEPTION(throwScope, false);
641 AttributeSetter::call(state, throwScope, [&] {
642 return impl.setM22(WTFMove(nativeValue));
643 });
644 return true;
645}
646
647bool setJSWebKitCSSMatrixM22(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
648{
649 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM22Setter>(*state, thisValue, encodedValue, "m22");
650}
651
652static inline JSValue jsWebKitCSSMatrixM23Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
653{
654 UNUSED_PARAM(throwScope);
655 UNUSED_PARAM(state);
656 auto& impl = thisObject.wrapped();
657 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m23());
658 return result;
659}
660
661EncodedJSValue jsWebKitCSSMatrixM23(ExecState* state, EncodedJSValue thisValue, PropertyName)
662{
663 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM23Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m23");
664}
665
666static inline bool setJSWebKitCSSMatrixM23Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
667{
668 UNUSED_PARAM(throwScope);
669 auto& impl = thisObject.wrapped();
670 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
671 RETURN_IF_EXCEPTION(throwScope, false);
672 AttributeSetter::call(state, throwScope, [&] {
673 return impl.setM23(WTFMove(nativeValue));
674 });
675 return true;
676}
677
678bool setJSWebKitCSSMatrixM23(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
679{
680 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM23Setter>(*state, thisValue, encodedValue, "m23");
681}
682
683static inline JSValue jsWebKitCSSMatrixM24Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
684{
685 UNUSED_PARAM(throwScope);
686 UNUSED_PARAM(state);
687 auto& impl = thisObject.wrapped();
688 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m24());
689 return result;
690}
691
692EncodedJSValue jsWebKitCSSMatrixM24(ExecState* state, EncodedJSValue thisValue, PropertyName)
693{
694 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM24Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m24");
695}
696
697static inline bool setJSWebKitCSSMatrixM24Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
698{
699 UNUSED_PARAM(throwScope);
700 auto& impl = thisObject.wrapped();
701 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
702 RETURN_IF_EXCEPTION(throwScope, false);
703 AttributeSetter::call(state, throwScope, [&] {
704 return impl.setM24(WTFMove(nativeValue));
705 });
706 return true;
707}
708
709bool setJSWebKitCSSMatrixM24(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
710{
711 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM24Setter>(*state, thisValue, encodedValue, "m24");
712}
713
714static inline JSValue jsWebKitCSSMatrixM31Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
715{
716 UNUSED_PARAM(throwScope);
717 UNUSED_PARAM(state);
718 auto& impl = thisObject.wrapped();
719 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m31());
720 return result;
721}
722
723EncodedJSValue jsWebKitCSSMatrixM31(ExecState* state, EncodedJSValue thisValue, PropertyName)
724{
725 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM31Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m31");
726}
727
728static inline bool setJSWebKitCSSMatrixM31Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
729{
730 UNUSED_PARAM(throwScope);
731 auto& impl = thisObject.wrapped();
732 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
733 RETURN_IF_EXCEPTION(throwScope, false);
734 AttributeSetter::call(state, throwScope, [&] {
735 return impl.setM31(WTFMove(nativeValue));
736 });
737 return true;
738}
739
740bool setJSWebKitCSSMatrixM31(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
741{
742 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM31Setter>(*state, thisValue, encodedValue, "m31");
743}
744
745static inline JSValue jsWebKitCSSMatrixM32Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
746{
747 UNUSED_PARAM(throwScope);
748 UNUSED_PARAM(state);
749 auto& impl = thisObject.wrapped();
750 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m32());
751 return result;
752}
753
754EncodedJSValue jsWebKitCSSMatrixM32(ExecState* state, EncodedJSValue thisValue, PropertyName)
755{
756 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM32Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m32");
757}
758
759static inline bool setJSWebKitCSSMatrixM32Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
760{
761 UNUSED_PARAM(throwScope);
762 auto& impl = thisObject.wrapped();
763 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
764 RETURN_IF_EXCEPTION(throwScope, false);
765 AttributeSetter::call(state, throwScope, [&] {
766 return impl.setM32(WTFMove(nativeValue));
767 });
768 return true;
769}
770
771bool setJSWebKitCSSMatrixM32(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
772{
773 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM32Setter>(*state, thisValue, encodedValue, "m32");
774}
775
776static inline JSValue jsWebKitCSSMatrixM33Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
777{
778 UNUSED_PARAM(throwScope);
779 UNUSED_PARAM(state);
780 auto& impl = thisObject.wrapped();
781 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m33());
782 return result;
783}
784
785EncodedJSValue jsWebKitCSSMatrixM33(ExecState* state, EncodedJSValue thisValue, PropertyName)
786{
787 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM33Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m33");
788}
789
790static inline bool setJSWebKitCSSMatrixM33Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
791{
792 UNUSED_PARAM(throwScope);
793 auto& impl = thisObject.wrapped();
794 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
795 RETURN_IF_EXCEPTION(throwScope, false);
796 AttributeSetter::call(state, throwScope, [&] {
797 return impl.setM33(WTFMove(nativeValue));
798 });
799 return true;
800}
801
802bool setJSWebKitCSSMatrixM33(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
803{
804 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM33Setter>(*state, thisValue, encodedValue, "m33");
805}
806
807static inline JSValue jsWebKitCSSMatrixM34Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
808{
809 UNUSED_PARAM(throwScope);
810 UNUSED_PARAM(state);
811 auto& impl = thisObject.wrapped();
812 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m34());
813 return result;
814}
815
816EncodedJSValue jsWebKitCSSMatrixM34(ExecState* state, EncodedJSValue thisValue, PropertyName)
817{
818 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM34Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m34");
819}
820
821static inline bool setJSWebKitCSSMatrixM34Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
822{
823 UNUSED_PARAM(throwScope);
824 auto& impl = thisObject.wrapped();
825 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
826 RETURN_IF_EXCEPTION(throwScope, false);
827 AttributeSetter::call(state, throwScope, [&] {
828 return impl.setM34(WTFMove(nativeValue));
829 });
830 return true;
831}
832
833bool setJSWebKitCSSMatrixM34(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
834{
835 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM34Setter>(*state, thisValue, encodedValue, "m34");
836}
837
838static inline JSValue jsWebKitCSSMatrixM41Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
839{
840 UNUSED_PARAM(throwScope);
841 UNUSED_PARAM(state);
842 auto& impl = thisObject.wrapped();
843 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m41());
844 return result;
845}
846
847EncodedJSValue jsWebKitCSSMatrixM41(ExecState* state, EncodedJSValue thisValue, PropertyName)
848{
849 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM41Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m41");
850}
851
852static inline bool setJSWebKitCSSMatrixM41Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
853{
854 UNUSED_PARAM(throwScope);
855 auto& impl = thisObject.wrapped();
856 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
857 RETURN_IF_EXCEPTION(throwScope, false);
858 AttributeSetter::call(state, throwScope, [&] {
859 return impl.setM41(WTFMove(nativeValue));
860 });
861 return true;
862}
863
864bool setJSWebKitCSSMatrixM41(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
865{
866 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM41Setter>(*state, thisValue, encodedValue, "m41");
867}
868
869static inline JSValue jsWebKitCSSMatrixM42Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
870{
871 UNUSED_PARAM(throwScope);
872 UNUSED_PARAM(state);
873 auto& impl = thisObject.wrapped();
874 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m42());
875 return result;
876}
877
878EncodedJSValue jsWebKitCSSMatrixM42(ExecState* state, EncodedJSValue thisValue, PropertyName)
879{
880 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM42Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m42");
881}
882
883static inline bool setJSWebKitCSSMatrixM42Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
884{
885 UNUSED_PARAM(throwScope);
886 auto& impl = thisObject.wrapped();
887 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
888 RETURN_IF_EXCEPTION(throwScope, false);
889 AttributeSetter::call(state, throwScope, [&] {
890 return impl.setM42(WTFMove(nativeValue));
891 });
892 return true;
893}
894
895bool setJSWebKitCSSMatrixM42(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
896{
897 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM42Setter>(*state, thisValue, encodedValue, "m42");
898}
899
900static inline JSValue jsWebKitCSSMatrixM43Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
901{
902 UNUSED_PARAM(throwScope);
903 UNUSED_PARAM(state);
904 auto& impl = thisObject.wrapped();
905 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m43());
906 return result;
907}
908
909EncodedJSValue jsWebKitCSSMatrixM43(ExecState* state, EncodedJSValue thisValue, PropertyName)
910{
911 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM43Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m43");
912}
913
914static inline bool setJSWebKitCSSMatrixM43Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
915{
916 UNUSED_PARAM(throwScope);
917 auto& impl = thisObject.wrapped();
918 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
919 RETURN_IF_EXCEPTION(throwScope, false);
920 AttributeSetter::call(state, throwScope, [&] {
921 return impl.setM43(WTFMove(nativeValue));
922 });
923 return true;
924}
925
926bool setJSWebKitCSSMatrixM43(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
927{
928 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM43Setter>(*state, thisValue, encodedValue, "m43");
929}
930
931static inline JSValue jsWebKitCSSMatrixM44Getter(ExecState& state, JSWebKitCSSMatrix& thisObject, ThrowScope& throwScope)
932{
933 UNUSED_PARAM(throwScope);
934 UNUSED_PARAM(state);
935 auto& impl = thisObject.wrapped();
936 JSValue result = toJS<IDLUnrestrictedDouble>(state, throwScope, impl.m44());
937 return result;
938}
939
940EncodedJSValue jsWebKitCSSMatrixM44(ExecState* state, EncodedJSValue thisValue, PropertyName)
941{
942 return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM44Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m44");
943}
944
945static inline bool setJSWebKitCSSMatrixM44Setter(ExecState& state, JSWebKitCSSMatrix& thisObject, JSValue value, ThrowScope& throwScope)
946{
947 UNUSED_PARAM(throwScope);
948 auto& impl = thisObject.wrapped();
949 auto nativeValue = convert<IDLUnrestrictedDouble>(state, value);
950 RETURN_IF_EXCEPTION(throwScope, false);
951 AttributeSetter::call(state, throwScope, [&] {
952 return impl.setM44(WTFMove(nativeValue));
953 });
954 return true;
955}
956
957bool setJSWebKitCSSMatrixM44(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
958{
959 return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM44Setter>(*state, thisValue, encodedValue, "m44");
960}
961
962static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionSetMatrixValueBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
963{
964 UNUSED_PARAM(state);
965 UNUSED_PARAM(throwScope);
966 auto& impl = castedThis->wrapped();
967 auto string = convert<IDLDOMString>(*state, state->argument(0));
968 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
969 propagateException(*state, throwScope, impl.setMatrixValue(WTFMove(string)));
970 return JSValue::encode(jsUndefined());
971}
972
973EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSetMatrixValue(ExecState* state)
974{
975 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionSetMatrixValueBody>(*state, "setMatrixValue");
976}
977
978static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionMultiplyBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
979{
980 UNUSED_PARAM(state);
981 UNUSED_PARAM(throwScope);
982 auto& impl = castedThis->wrapped();
983 auto secondMatrix = convert<IDLNullable<IDLInterface<WebKitCSSMatrix>>>(*state, state->argument(0), [](JSC::ExecState& state, JSC::ThrowScope& scope) { throwArgumentTypeError(state, scope, 0, "secondMatrix", "WebKitCSSMatrix", "multiply", "WebKitCSSMatrix"); });
984 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
985 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), impl.multiply(WTFMove(secondMatrix))));
986}
987
988EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionMultiply(ExecState* state)
989{
990 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionMultiplyBody>(*state, "multiply");
991}
992
993static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionInverseBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
994{
995 UNUSED_PARAM(state);
996 UNUSED_PARAM(throwScope);
997 auto& impl = castedThis->wrapped();
998 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), throwScope, impl.inverse()));
999}
1000
1001EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionInverse(ExecState* state)
1002{
1003 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionInverseBody>(*state, "inverse");
1004}
1005
1006static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionTranslateBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1007{
1008 UNUSED_PARAM(state);
1009 UNUSED_PARAM(throwScope);
1010 auto& impl = castedThis->wrapped();
1011 auto x = convert<IDLUnrestrictedDouble>(*state, state->argument(0));
1012 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1013 auto y = convert<IDLUnrestrictedDouble>(*state, state->argument(1));
1014 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1015 auto z = convert<IDLUnrestrictedDouble>(*state, state->argument(2));
1016 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1017 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), impl.translate(WTFMove(x), WTFMove(y), WTFMove(z))));
1018}
1019
1020EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionTranslate(ExecState* state)
1021{
1022 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionTranslateBody>(*state, "translate");
1023}
1024
1025static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionScaleBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1026{
1027 UNUSED_PARAM(state);
1028 UNUSED_PARAM(throwScope);
1029 auto& impl = castedThis->wrapped();
1030 auto scaleX = convert<IDLUnrestrictedDouble>(*state, state->argument(0));
1031 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1032 auto scaleY = convert<IDLUnrestrictedDouble>(*state, state->argument(1));
1033 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1034 auto scaleZ = convert<IDLUnrestrictedDouble>(*state, state->argument(2));
1035 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1036 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), impl.scale(WTFMove(scaleX), WTFMove(scaleY), WTFMove(scaleZ))));
1037}
1038
1039EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionScale(ExecState* state)
1040{
1041 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionScaleBody>(*state, "scale");
1042}
1043
1044static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionRotateBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1045{
1046 UNUSED_PARAM(state);
1047 UNUSED_PARAM(throwScope);
1048 auto& impl = castedThis->wrapped();
1049 auto rotX = convert<IDLUnrestrictedDouble>(*state, state->argument(0));
1050 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1051 auto rotY = convert<IDLUnrestrictedDouble>(*state, state->argument(1));
1052 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1053 auto rotZ = convert<IDLUnrestrictedDouble>(*state, state->argument(2));
1054 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1055 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), impl.rotate(WTFMove(rotX), WTFMove(rotY), WTFMove(rotZ))));
1056}
1057
1058EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotate(ExecState* state)
1059{
1060 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionRotateBody>(*state, "rotate");
1061}
1062
1063static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngleBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1064{
1065 UNUSED_PARAM(state);
1066 UNUSED_PARAM(throwScope);
1067 auto& impl = castedThis->wrapped();
1068 auto x = convert<IDLUnrestrictedDouble>(*state, state->argument(0));
1069 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1070 auto y = convert<IDLUnrestrictedDouble>(*state, state->argument(1));
1071 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1072 auto z = convert<IDLUnrestrictedDouble>(*state, state->argument(2));
1073 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1074 auto angle = convert<IDLUnrestrictedDouble>(*state, state->argument(3));
1075 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1076 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), impl.rotateAxisAngle(WTFMove(x), WTFMove(y), WTFMove(z), WTFMove(angle))));
1077}
1078
1079EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngle(ExecState* state)
1080{
1081 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngleBody>(*state, "rotateAxisAngle");
1082}
1083
1084static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionSkewXBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1085{
1086 UNUSED_PARAM(state);
1087 UNUSED_PARAM(throwScope);
1088 auto& impl = castedThis->wrapped();
1089 auto angle = convert<IDLUnrestrictedDouble>(*state, state->argument(0));
1090 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1091 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), impl.skewX(WTFMove(angle))));
1092}
1093
1094EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewX(ExecState* state)
1095{
1096 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionSkewXBody>(*state, "skewX");
1097}
1098
1099static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionSkewYBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1100{
1101 UNUSED_PARAM(state);
1102 UNUSED_PARAM(throwScope);
1103 auto& impl = castedThis->wrapped();
1104 auto angle = convert<IDLUnrestrictedDouble>(*state, state->argument(0));
1105 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1106 return JSValue::encode(toJS<IDLInterface<WebKitCSSMatrix>>(*state, *castedThis->globalObject(), impl.skewY(WTFMove(angle))));
1107}
1108
1109EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewY(ExecState* state)
1110{
1111 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionSkewYBody>(*state, "skewY");
1112}
1113
1114static inline JSC::EncodedJSValue jsWebKitCSSMatrixPrototypeFunctionToStringBody(JSC::ExecState* state, typename IDLOperation<JSWebKitCSSMatrix>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1115{
1116 UNUSED_PARAM(state);
1117 UNUSED_PARAM(throwScope);
1118 auto& impl = castedThis->wrapped();
1119 return JSValue::encode(toJS<IDLDOMString>(*state, throwScope, impl.toString()));
1120}
1121
1122EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionToString(ExecState* state)
1123{
1124 return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionToStringBody>(*state, "toString");
1125}
1126
1127void JSWebKitCSSMatrix::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder)
1128{
1129 auto* thisObject = jsCast<JSWebKitCSSMatrix*>(cell);
1130 builder.setWrappedObjectForCell(cell, &thisObject->wrapped());
1131 if (thisObject->scriptExecutionContext())
1132 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());
1133 Base::heapSnapshot(cell, builder);
1134}
1135
1136bool JSWebKitCSSMatrixOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor, const char** reason)
1137{
1138 UNUSED_PARAM(handle);
1139 UNUSED_PARAM(visitor);
1140 UNUSED_PARAM(reason);
1141 return false;
1142}
1143
1144void JSWebKitCSSMatrixOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
1145{
1146 auto* jsWebKitCSSMatrix = static_cast<JSWebKitCSSMatrix*>(handle.slot()->asCell());
1147 auto& world = *static_cast<DOMWrapperWorld*>(context);
1148 uncacheWrapper(world, &jsWebKitCSSMatrix->wrapped(), jsWebKitCSSMatrix);
1149}
1150
1151JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject* globalObject, Ref<WebKitCSSMatrix>&& impl)
1152{
1153 // If you hit this failure the interface definition has the ImplementationLacksVTable
1154 // attribute. You should remove that attribute. If the class has subclasses
1155 // that may be passed through this toJS() function you should use the SkipVTableValidation
1156 // attribute to WebKitCSSMatrix.
1157 static_assert(!std::is_polymorphic<WebKitCSSMatrix>::value, "WebKitCSSMatrix is polymorphic but the IDL claims it is not");
1158 return createWrapper<WebKitCSSMatrix>(globalObject, WTFMove(impl));
1159}
1160
1161JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, WebKitCSSMatrix& impl)
1162{
1163 return wrap(state, globalObject, impl);
1164}
1165
1166WebKitCSSMatrix* JSWebKitCSSMatrix::toWrapped(JSC::VM& vm, JSC::JSValue value)
1167{
1168 if (auto* wrapper = jsDynamicCast<JSWebKitCSSMatrix*>(vm, value))
1169 return &wrapper->wrapped();
1170 return nullptr;
1171}
1172
1173}
1174