| 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 | |
| 45 | namespace WebCore { |
| 46 | using namespace JSC; |
| 47 | |
| 48 | // Functions |
| 49 | |
| 50 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSetMatrixValue(JSC::ExecState*); |
| 51 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionMultiply(JSC::ExecState*); |
| 52 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionInverse(JSC::ExecState*); |
| 53 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionTranslate(JSC::ExecState*); |
| 54 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionScale(JSC::ExecState*); |
| 55 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotate(JSC::ExecState*); |
| 56 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngle(JSC::ExecState*); |
| 57 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewX(JSC::ExecState*); |
| 58 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewY(JSC::ExecState*); |
| 59 | JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionToString(JSC::ExecState*); |
| 60 | |
| 61 | // Attributes |
| 62 | |
| 63 | JSC::EncodedJSValue jsWebKitCSSMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 64 | bool setJSWebKitCSSMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 65 | JSC::EncodedJSValue jsWebKitCSSMatrixA(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 66 | bool setJSWebKitCSSMatrixA(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 67 | JSC::EncodedJSValue jsWebKitCSSMatrixB(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 68 | bool setJSWebKitCSSMatrixB(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 69 | JSC::EncodedJSValue jsWebKitCSSMatrixC(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 70 | bool setJSWebKitCSSMatrixC(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 71 | JSC::EncodedJSValue jsWebKitCSSMatrixD(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 72 | bool setJSWebKitCSSMatrixD(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 73 | JSC::EncodedJSValue jsWebKitCSSMatrixE(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 74 | bool setJSWebKitCSSMatrixE(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 75 | JSC::EncodedJSValue jsWebKitCSSMatrixF(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 76 | bool setJSWebKitCSSMatrixF(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 77 | JSC::EncodedJSValue jsWebKitCSSMatrixM11(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 78 | bool setJSWebKitCSSMatrixM11(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 79 | JSC::EncodedJSValue jsWebKitCSSMatrixM12(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 80 | bool setJSWebKitCSSMatrixM12(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 81 | JSC::EncodedJSValue jsWebKitCSSMatrixM13(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 82 | bool setJSWebKitCSSMatrixM13(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 83 | JSC::EncodedJSValue jsWebKitCSSMatrixM14(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 84 | bool setJSWebKitCSSMatrixM14(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 85 | JSC::EncodedJSValue jsWebKitCSSMatrixM21(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 86 | bool setJSWebKitCSSMatrixM21(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 87 | JSC::EncodedJSValue jsWebKitCSSMatrixM22(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 88 | bool setJSWebKitCSSMatrixM22(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 89 | JSC::EncodedJSValue jsWebKitCSSMatrixM23(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 90 | bool setJSWebKitCSSMatrixM23(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 91 | JSC::EncodedJSValue jsWebKitCSSMatrixM24(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 92 | bool setJSWebKitCSSMatrixM24(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 93 | JSC::EncodedJSValue jsWebKitCSSMatrixM31(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 94 | bool setJSWebKitCSSMatrixM31(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 95 | JSC::EncodedJSValue jsWebKitCSSMatrixM32(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 96 | bool setJSWebKitCSSMatrixM32(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 97 | JSC::EncodedJSValue jsWebKitCSSMatrixM33(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 98 | bool setJSWebKitCSSMatrixM33(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 99 | JSC::EncodedJSValue jsWebKitCSSMatrixM34(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 100 | bool setJSWebKitCSSMatrixM34(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 101 | JSC::EncodedJSValue jsWebKitCSSMatrixM41(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 102 | bool setJSWebKitCSSMatrixM41(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 103 | JSC::EncodedJSValue jsWebKitCSSMatrixM42(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 104 | bool setJSWebKitCSSMatrixM42(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 105 | JSC::EncodedJSValue jsWebKitCSSMatrixM43(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 106 | bool setJSWebKitCSSMatrixM43(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 107 | JSC::EncodedJSValue jsWebKitCSSMatrixM44(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 108 | bool setJSWebKitCSSMatrixM44(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 109 | |
| 110 | class JSWebKitCSSMatrixPrototype : public JSC::JSNonFinalObject { |
| 111 | public: |
| 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 | |
| 126 | private: |
| 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 | |
| 135 | using JSWebKitCSSMatrixConstructor = JSDOMConstructor<JSWebKitCSSMatrix>; |
| 136 | |
| 137 | template<> 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 | |
| 150 | template<> JSValue JSWebKitCSSMatrixConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
| 151 | { |
| 152 | UNUSED_PARAM(vm); |
| 153 | return globalObject.functionPrototype(); |
| 154 | } |
| 155 | |
| 156 | template<> 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 | |
| 163 | template<> const ClassInfo JSWebKitCSSMatrixConstructor::s_info = { "WebKitCSSMatrix" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSWebKitCSSMatrixConstructor) }; |
| 164 | |
| 165 | /* Hash table for prototype */ |
| 166 | |
| 167 | static 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 | |
| 204 | const ClassInfo JSWebKitCSSMatrixPrototype::s_info = { "WebKitCSSMatrixPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSWebKitCSSMatrixPrototype) }; |
| 205 | |
| 206 | void JSWebKitCSSMatrixPrototype::finishCreation(VM& vm) |
| 207 | { |
| 208 | Base::finishCreation(vm); |
| 209 | reifyStaticProperties(vm, JSWebKitCSSMatrix::info(), JSWebKitCSSMatrixPrototypeTableValues, *this); |
| 210 | } |
| 211 | |
| 212 | const ClassInfo JSWebKitCSSMatrix::s_info = { "WebKitCSSMatrix" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSWebKitCSSMatrix) }; |
| 213 | |
| 214 | JSWebKitCSSMatrix::JSWebKitCSSMatrix(Structure* structure, JSDOMGlobalObject& globalObject, Ref<WebKitCSSMatrix>&& impl) |
| 215 | : JSDOMWrapper<WebKitCSSMatrix>(structure, globalObject, WTFMove(impl)) |
| 216 | { |
| 217 | } |
| 218 | |
| 219 | void JSWebKitCSSMatrix::finishCreation(VM& vm) |
| 220 | { |
| 221 | Base::finishCreation(vm); |
| 222 | ASSERT(inherits(vm, info())); |
| 223 | |
| 224 | } |
| 225 | |
| 226 | JSObject* JSWebKitCSSMatrix::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 227 | { |
| 228 | return JSWebKitCSSMatrixPrototype::create(vm, &globalObject, JSWebKitCSSMatrixPrototype::createStructure(vm, &globalObject, globalObject.objectPrototype())); |
| 229 | } |
| 230 | |
| 231 | JSObject* JSWebKitCSSMatrix::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 232 | { |
| 233 | return getDOMPrototype<JSWebKitCSSMatrix>(vm, globalObject); |
| 234 | } |
| 235 | |
| 236 | JSValue JSWebKitCSSMatrix::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
| 237 | { |
| 238 | return getDOMConstructor<JSWebKitCSSMatrixConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
| 239 | } |
| 240 | |
| 241 | void JSWebKitCSSMatrix::destroy(JSC::JSCell* cell) |
| 242 | { |
| 243 | JSWebKitCSSMatrix* thisObject = static_cast<JSWebKitCSSMatrix*>(cell); |
| 244 | thisObject->JSWebKitCSSMatrix::~JSWebKitCSSMatrix(); |
| 245 | } |
| 246 | |
| 247 | template<> inline JSWebKitCSSMatrix* IDLAttribute<JSWebKitCSSMatrix>::cast(ExecState& state, EncodedJSValue thisValue) |
| 248 | { |
| 249 | return jsDynamicCast<JSWebKitCSSMatrix*>(state.vm(), JSValue::decode(thisValue)); |
| 250 | } |
| 251 | |
| 252 | template<> inline JSWebKitCSSMatrix* IDLOperation<JSWebKitCSSMatrix>::cast(ExecState& state) |
| 253 | { |
| 254 | return jsDynamicCast<JSWebKitCSSMatrix*>(state.vm(), state.thisValue()); |
| 255 | } |
| 256 | |
| 257 | EncodedJSValue 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 | |
| 267 | bool 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 | |
| 280 | static 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 | |
| 289 | EncodedJSValue jsWebKitCSSMatrixA(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 290 | { |
| 291 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixAGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "a" ); |
| 292 | } |
| 293 | |
| 294 | static 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 | |
| 306 | bool setJSWebKitCSSMatrixA(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 307 | { |
| 308 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixASetter>(*state, thisValue, encodedValue, "a" ); |
| 309 | } |
| 310 | |
| 311 | static 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 | |
| 320 | EncodedJSValue jsWebKitCSSMatrixB(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 321 | { |
| 322 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixBGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "b" ); |
| 323 | } |
| 324 | |
| 325 | static 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 | |
| 337 | bool setJSWebKitCSSMatrixB(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 338 | { |
| 339 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixBSetter>(*state, thisValue, encodedValue, "b" ); |
| 340 | } |
| 341 | |
| 342 | static 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 | |
| 351 | EncodedJSValue jsWebKitCSSMatrixC(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 352 | { |
| 353 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixCGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "c" ); |
| 354 | } |
| 355 | |
| 356 | static 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 | |
| 368 | bool setJSWebKitCSSMatrixC(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 369 | { |
| 370 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixCSetter>(*state, thisValue, encodedValue, "c" ); |
| 371 | } |
| 372 | |
| 373 | static 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 | |
| 382 | EncodedJSValue jsWebKitCSSMatrixD(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 383 | { |
| 384 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixDGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "d" ); |
| 385 | } |
| 386 | |
| 387 | static 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 | |
| 399 | bool setJSWebKitCSSMatrixD(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 400 | { |
| 401 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixDSetter>(*state, thisValue, encodedValue, "d" ); |
| 402 | } |
| 403 | |
| 404 | static 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 | |
| 413 | EncodedJSValue jsWebKitCSSMatrixE(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 414 | { |
| 415 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixEGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "e" ); |
| 416 | } |
| 417 | |
| 418 | static 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 | |
| 430 | bool setJSWebKitCSSMatrixE(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 431 | { |
| 432 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixESetter>(*state, thisValue, encodedValue, "e" ); |
| 433 | } |
| 434 | |
| 435 | static 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 | |
| 444 | EncodedJSValue jsWebKitCSSMatrixF(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 445 | { |
| 446 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixFGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "f" ); |
| 447 | } |
| 448 | |
| 449 | static 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 | |
| 461 | bool setJSWebKitCSSMatrixF(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 462 | { |
| 463 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixFSetter>(*state, thisValue, encodedValue, "f" ); |
| 464 | } |
| 465 | |
| 466 | static 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 | |
| 475 | EncodedJSValue jsWebKitCSSMatrixM11(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 476 | { |
| 477 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM11Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m11" ); |
| 478 | } |
| 479 | |
| 480 | static 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 | |
| 492 | bool setJSWebKitCSSMatrixM11(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 493 | { |
| 494 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM11Setter>(*state, thisValue, encodedValue, "m11" ); |
| 495 | } |
| 496 | |
| 497 | static 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 | |
| 506 | EncodedJSValue jsWebKitCSSMatrixM12(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 507 | { |
| 508 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM12Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m12" ); |
| 509 | } |
| 510 | |
| 511 | static 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 | |
| 523 | bool setJSWebKitCSSMatrixM12(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 524 | { |
| 525 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM12Setter>(*state, thisValue, encodedValue, "m12" ); |
| 526 | } |
| 527 | |
| 528 | static 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 | |
| 537 | EncodedJSValue jsWebKitCSSMatrixM13(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 538 | { |
| 539 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM13Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m13" ); |
| 540 | } |
| 541 | |
| 542 | static 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 | |
| 554 | bool setJSWebKitCSSMatrixM13(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 555 | { |
| 556 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM13Setter>(*state, thisValue, encodedValue, "m13" ); |
| 557 | } |
| 558 | |
| 559 | static 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 | |
| 568 | EncodedJSValue jsWebKitCSSMatrixM14(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 569 | { |
| 570 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM14Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m14" ); |
| 571 | } |
| 572 | |
| 573 | static 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 | |
| 585 | bool setJSWebKitCSSMatrixM14(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 586 | { |
| 587 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM14Setter>(*state, thisValue, encodedValue, "m14" ); |
| 588 | } |
| 589 | |
| 590 | static 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 | |
| 599 | EncodedJSValue jsWebKitCSSMatrixM21(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 600 | { |
| 601 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM21Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m21" ); |
| 602 | } |
| 603 | |
| 604 | static 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 | |
| 616 | bool setJSWebKitCSSMatrixM21(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 617 | { |
| 618 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM21Setter>(*state, thisValue, encodedValue, "m21" ); |
| 619 | } |
| 620 | |
| 621 | static 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 | |
| 630 | EncodedJSValue jsWebKitCSSMatrixM22(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 631 | { |
| 632 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM22Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m22" ); |
| 633 | } |
| 634 | |
| 635 | static 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 | |
| 647 | bool setJSWebKitCSSMatrixM22(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 648 | { |
| 649 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM22Setter>(*state, thisValue, encodedValue, "m22" ); |
| 650 | } |
| 651 | |
| 652 | static 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 | |
| 661 | EncodedJSValue jsWebKitCSSMatrixM23(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 662 | { |
| 663 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM23Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m23" ); |
| 664 | } |
| 665 | |
| 666 | static 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 | |
| 678 | bool setJSWebKitCSSMatrixM23(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 679 | { |
| 680 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM23Setter>(*state, thisValue, encodedValue, "m23" ); |
| 681 | } |
| 682 | |
| 683 | static 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 | |
| 692 | EncodedJSValue jsWebKitCSSMatrixM24(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 693 | { |
| 694 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM24Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m24" ); |
| 695 | } |
| 696 | |
| 697 | static 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 | |
| 709 | bool setJSWebKitCSSMatrixM24(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 710 | { |
| 711 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM24Setter>(*state, thisValue, encodedValue, "m24" ); |
| 712 | } |
| 713 | |
| 714 | static 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 | |
| 723 | EncodedJSValue jsWebKitCSSMatrixM31(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 724 | { |
| 725 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM31Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m31" ); |
| 726 | } |
| 727 | |
| 728 | static 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 | |
| 740 | bool setJSWebKitCSSMatrixM31(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 741 | { |
| 742 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM31Setter>(*state, thisValue, encodedValue, "m31" ); |
| 743 | } |
| 744 | |
| 745 | static 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 | |
| 754 | EncodedJSValue jsWebKitCSSMatrixM32(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 755 | { |
| 756 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM32Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m32" ); |
| 757 | } |
| 758 | |
| 759 | static 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 | |
| 771 | bool setJSWebKitCSSMatrixM32(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 772 | { |
| 773 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM32Setter>(*state, thisValue, encodedValue, "m32" ); |
| 774 | } |
| 775 | |
| 776 | static 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 | |
| 785 | EncodedJSValue jsWebKitCSSMatrixM33(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 786 | { |
| 787 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM33Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m33" ); |
| 788 | } |
| 789 | |
| 790 | static 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 | |
| 802 | bool setJSWebKitCSSMatrixM33(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 803 | { |
| 804 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM33Setter>(*state, thisValue, encodedValue, "m33" ); |
| 805 | } |
| 806 | |
| 807 | static 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 | |
| 816 | EncodedJSValue jsWebKitCSSMatrixM34(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 817 | { |
| 818 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM34Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m34" ); |
| 819 | } |
| 820 | |
| 821 | static 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 | |
| 833 | bool setJSWebKitCSSMatrixM34(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 834 | { |
| 835 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM34Setter>(*state, thisValue, encodedValue, "m34" ); |
| 836 | } |
| 837 | |
| 838 | static 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 | |
| 847 | EncodedJSValue jsWebKitCSSMatrixM41(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 848 | { |
| 849 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM41Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m41" ); |
| 850 | } |
| 851 | |
| 852 | static 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 | |
| 864 | bool setJSWebKitCSSMatrixM41(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 865 | { |
| 866 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM41Setter>(*state, thisValue, encodedValue, "m41" ); |
| 867 | } |
| 868 | |
| 869 | static 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 | |
| 878 | EncodedJSValue jsWebKitCSSMatrixM42(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 879 | { |
| 880 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM42Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m42" ); |
| 881 | } |
| 882 | |
| 883 | static 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 | |
| 895 | bool setJSWebKitCSSMatrixM42(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 896 | { |
| 897 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM42Setter>(*state, thisValue, encodedValue, "m42" ); |
| 898 | } |
| 899 | |
| 900 | static 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 | |
| 909 | EncodedJSValue jsWebKitCSSMatrixM43(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 910 | { |
| 911 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM43Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m43" ); |
| 912 | } |
| 913 | |
| 914 | static 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 | |
| 926 | bool setJSWebKitCSSMatrixM43(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 927 | { |
| 928 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM43Setter>(*state, thisValue, encodedValue, "m43" ); |
| 929 | } |
| 930 | |
| 931 | static 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 | |
| 940 | EncodedJSValue jsWebKitCSSMatrixM44(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 941 | { |
| 942 | return IDLAttribute<JSWebKitCSSMatrix>::get<jsWebKitCSSMatrixM44Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "m44" ); |
| 943 | } |
| 944 | |
| 945 | static 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 | |
| 957 | bool setJSWebKitCSSMatrixM44(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 958 | { |
| 959 | return IDLAttribute<JSWebKitCSSMatrix>::set<setJSWebKitCSSMatrixM44Setter>(*state, thisValue, encodedValue, "m44" ); |
| 960 | } |
| 961 | |
| 962 | static 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 | |
| 973 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSetMatrixValue(ExecState* state) |
| 974 | { |
| 975 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionSetMatrixValueBody>(*state, "setMatrixValue" ); |
| 976 | } |
| 977 | |
| 978 | static 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 | |
| 988 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionMultiply(ExecState* state) |
| 989 | { |
| 990 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionMultiplyBody>(*state, "multiply" ); |
| 991 | } |
| 992 | |
| 993 | static 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 | |
| 1001 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionInverse(ExecState* state) |
| 1002 | { |
| 1003 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionInverseBody>(*state, "inverse" ); |
| 1004 | } |
| 1005 | |
| 1006 | static 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 | |
| 1020 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionTranslate(ExecState* state) |
| 1021 | { |
| 1022 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionTranslateBody>(*state, "translate" ); |
| 1023 | } |
| 1024 | |
| 1025 | static 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 | |
| 1039 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionScale(ExecState* state) |
| 1040 | { |
| 1041 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionScaleBody>(*state, "scale" ); |
| 1042 | } |
| 1043 | |
| 1044 | static 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 | |
| 1058 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotate(ExecState* state) |
| 1059 | { |
| 1060 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionRotateBody>(*state, "rotate" ); |
| 1061 | } |
| 1062 | |
| 1063 | static 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 | |
| 1079 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngle(ExecState* state) |
| 1080 | { |
| 1081 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngleBody>(*state, "rotateAxisAngle" ); |
| 1082 | } |
| 1083 | |
| 1084 | static 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 | |
| 1094 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewX(ExecState* state) |
| 1095 | { |
| 1096 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionSkewXBody>(*state, "skewX" ); |
| 1097 | } |
| 1098 | |
| 1099 | static 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 | |
| 1109 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSkewY(ExecState* state) |
| 1110 | { |
| 1111 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionSkewYBody>(*state, "skewY" ); |
| 1112 | } |
| 1113 | |
| 1114 | static 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 | |
| 1122 | EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionToString(ExecState* state) |
| 1123 | { |
| 1124 | return IDLOperation<JSWebKitCSSMatrix>::call<jsWebKitCSSMatrixPrototypeFunctionToStringBody>(*state, "toString" ); |
| 1125 | } |
| 1126 | |
| 1127 | void 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 | |
| 1136 | bool 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 | |
| 1144 | void 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 | |
| 1151 | JSC::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 | |
| 1161 | JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, WebKitCSSMatrix& impl) |
| 1162 | { |
| 1163 | return wrap(state, globalObject, impl); |
| 1164 | } |
| 1165 | |
| 1166 | WebKitCSSMatrix* 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 | |