WebCore/generated/JSWebKitCSSMatrix.cpp
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     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 "JSWebKitCSSMatrix.h"
       
    25 #include "KURL.h"
       
    26 #include "WebKitCSSMatrix.h"
       
    27 #include <runtime/Error.h>
       
    28 #include <runtime/JSNumberCell.h>
       
    29 #include <runtime/JSString.h>
       
    30 #include <wtf/GetPtr.h>
       
    31 
       
    32 using namespace JSC;
       
    33 
       
    34 namespace WebCore {
       
    35 
       
    36 ASSERT_CLASS_FITS_IN_CELL(JSWebKitCSSMatrix);
       
    37 
       
    38 /* Hash table */
       
    39 #if ENABLE(JIT)
       
    40 #define THUNK_GENERATOR(generator) , generator
       
    41 #else
       
    42 #define THUNK_GENERATOR(generator)
       
    43 #endif
       
    44 
       
    45 static const HashTableValue JSWebKitCSSMatrixTableValues[24] =
       
    46 {
       
    47     { "a", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixA), (intptr_t)setJSWebKitCSSMatrixA THUNK_GENERATOR(0) },
       
    48     { "b", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixB), (intptr_t)setJSWebKitCSSMatrixB THUNK_GENERATOR(0) },
       
    49     { "c", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixC), (intptr_t)setJSWebKitCSSMatrixC THUNK_GENERATOR(0) },
       
    50     { "d", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixD), (intptr_t)setJSWebKitCSSMatrixD THUNK_GENERATOR(0) },
       
    51     { "e", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixE), (intptr_t)setJSWebKitCSSMatrixE THUNK_GENERATOR(0) },
       
    52     { "f", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixF), (intptr_t)setJSWebKitCSSMatrixF THUNK_GENERATOR(0) },
       
    53     { "m11", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM11), (intptr_t)setJSWebKitCSSMatrixM11 THUNK_GENERATOR(0) },
       
    54     { "m12", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM12), (intptr_t)setJSWebKitCSSMatrixM12 THUNK_GENERATOR(0) },
       
    55     { "m13", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM13), (intptr_t)setJSWebKitCSSMatrixM13 THUNK_GENERATOR(0) },
       
    56     { "m14", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM14), (intptr_t)setJSWebKitCSSMatrixM14 THUNK_GENERATOR(0) },
       
    57     { "m21", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM21), (intptr_t)setJSWebKitCSSMatrixM21 THUNK_GENERATOR(0) },
       
    58     { "m22", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM22), (intptr_t)setJSWebKitCSSMatrixM22 THUNK_GENERATOR(0) },
       
    59     { "m23", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM23), (intptr_t)setJSWebKitCSSMatrixM23 THUNK_GENERATOR(0) },
       
    60     { "m24", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM24), (intptr_t)setJSWebKitCSSMatrixM24 THUNK_GENERATOR(0) },
       
    61     { "m31", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM31), (intptr_t)setJSWebKitCSSMatrixM31 THUNK_GENERATOR(0) },
       
    62     { "m32", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM32), (intptr_t)setJSWebKitCSSMatrixM32 THUNK_GENERATOR(0) },
       
    63     { "m33", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM33), (intptr_t)setJSWebKitCSSMatrixM33 THUNK_GENERATOR(0) },
       
    64     { "m34", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM34), (intptr_t)setJSWebKitCSSMatrixM34 THUNK_GENERATOR(0) },
       
    65     { "m41", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM41), (intptr_t)setJSWebKitCSSMatrixM41 THUNK_GENERATOR(0) },
       
    66     { "m42", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM42), (intptr_t)setJSWebKitCSSMatrixM42 THUNK_GENERATOR(0) },
       
    67     { "m43", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM43), (intptr_t)setJSWebKitCSSMatrixM43 THUNK_GENERATOR(0) },
       
    68     { "m44", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixM44), (intptr_t)setJSWebKitCSSMatrixM44 THUNK_GENERATOR(0) },
       
    69     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSMatrixConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    70     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    71 };
       
    72 
       
    73 #undef THUNK_GENERATOR
       
    74 static JSC_CONST_HASHTABLE HashTable JSWebKitCSSMatrixTable = { 66, 63, JSWebKitCSSMatrixTableValues, 0 };
       
    75 /* Hash table for constructor */
       
    76 #if ENABLE(JIT)
       
    77 #define THUNK_GENERATOR(generator) , generator
       
    78 #else
       
    79 #define THUNK_GENERATOR(generator)
       
    80 #endif
       
    81 
       
    82 static const HashTableValue JSWebKitCSSMatrixConstructorTableValues[1] =
       
    83 {
       
    84     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    85 };
       
    86 
       
    87 #undef THUNK_GENERATOR
       
    88 static JSC_CONST_HASHTABLE HashTable JSWebKitCSSMatrixConstructorTable = { 1, 0, JSWebKitCSSMatrixConstructorTableValues, 0 };
       
    89 const ClassInfo JSWebKitCSSMatrixConstructor::s_info = { "WebKitCSSMatrixConstructor", 0, &JSWebKitCSSMatrixConstructorTable, 0 };
       
    90 
       
    91 JSWebKitCSSMatrixConstructor::JSWebKitCSSMatrixConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    92     : DOMConstructorObject(JSWebKitCSSMatrixConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
    93 {
       
    94     putDirect(exec->propertyNames().prototype, JSWebKitCSSMatrixPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
    95     putDirect(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly | DontDelete | DontEnum);
       
    96 }
       
    97 
       
    98 bool JSWebKitCSSMatrixConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
    99 {
       
   100     return getStaticValueSlot<JSWebKitCSSMatrixConstructor, DOMObject>(exec, &JSWebKitCSSMatrixConstructorTable, this, propertyName, slot);
       
   101 }
       
   102 
       
   103 bool JSWebKitCSSMatrixConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   104 {
       
   105     return getStaticValueDescriptor<JSWebKitCSSMatrixConstructor, DOMObject>(exec, &JSWebKitCSSMatrixConstructorTable, this, propertyName, descriptor);
       
   106 }
       
   107 
       
   108 ConstructType JSWebKitCSSMatrixConstructor::getConstructData(ConstructData& constructData)
       
   109 {
       
   110     constructData.native.function = constructJSWebKitCSSMatrix;
       
   111     return ConstructTypeHost;
       
   112 }
       
   113 
       
   114 /* Hash table for prototype */
       
   115 #if ENABLE(JIT)
       
   116 #define THUNK_GENERATOR(generator) , generator
       
   117 #else
       
   118 #define THUNK_GENERATOR(generator)
       
   119 #endif
       
   120 
       
   121 static const HashTableValue JSWebKitCSSMatrixPrototypeTableValues[9] =
       
   122 {
       
   123     { "setMatrixValue", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionSetMatrixValue), (intptr_t)1 THUNK_GENERATOR(0) },
       
   124     { "multiply", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionMultiply), (intptr_t)1 THUNK_GENERATOR(0) },
       
   125     { "inverse", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionInverse), (intptr_t)0 THUNK_GENERATOR(0) },
       
   126     { "translate", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionTranslate), (intptr_t)3 THUNK_GENERATOR(0) },
       
   127     { "scale", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionScale), (intptr_t)3 THUNK_GENERATOR(0) },
       
   128     { "rotate", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionRotate), (intptr_t)3 THUNK_GENERATOR(0) },
       
   129     { "rotateAxisAngle", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngle), (intptr_t)4 THUNK_GENERATOR(0) },
       
   130     { "toString", DontDelete | DontEnum | Function, (intptr_t)static_cast<NativeFunction>(jsWebKitCSSMatrixPrototypeFunctionToString), (intptr_t)0 THUNK_GENERATOR(0) },
       
   131     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   132 };
       
   133 
       
   134 #undef THUNK_GENERATOR
       
   135 static JSC_CONST_HASHTABLE HashTable JSWebKitCSSMatrixPrototypeTable = { 17, 15, JSWebKitCSSMatrixPrototypeTableValues, 0 };
       
   136 const ClassInfo JSWebKitCSSMatrixPrototype::s_info = { "WebKitCSSMatrixPrototype", 0, &JSWebKitCSSMatrixPrototypeTable, 0 };
       
   137 
       
   138 JSObject* JSWebKitCSSMatrixPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   139 {
       
   140     return getDOMPrototype<JSWebKitCSSMatrix>(exec, globalObject);
       
   141 }
       
   142 
       
   143 bool JSWebKitCSSMatrixPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   144 {
       
   145     return getStaticFunctionSlot<JSObject>(exec, &JSWebKitCSSMatrixPrototypeTable, this, propertyName, slot);
       
   146 }
       
   147 
       
   148 bool JSWebKitCSSMatrixPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   149 {
       
   150     return getStaticFunctionDescriptor<JSObject>(exec, &JSWebKitCSSMatrixPrototypeTable, this, propertyName, descriptor);
       
   151 }
       
   152 
       
   153 const ClassInfo JSWebKitCSSMatrix::s_info = { "WebKitCSSMatrix", 0, &JSWebKitCSSMatrixTable, 0 };
       
   154 
       
   155 JSWebKitCSSMatrix::JSWebKitCSSMatrix(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<WebKitCSSMatrix> impl)
       
   156     : DOMObjectWithGlobalPointer(structure, globalObject)
       
   157     , m_impl(impl)
       
   158 {
       
   159 }
       
   160 
       
   161 JSWebKitCSSMatrix::~JSWebKitCSSMatrix()
       
   162 {
       
   163     forgetDOMObject(this, impl());
       
   164 }
       
   165 
       
   166 JSObject* JSWebKitCSSMatrix::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   167 {
       
   168     return new (exec) JSWebKitCSSMatrixPrototype(globalObject, JSWebKitCSSMatrixPrototype::createStructure(globalObject->objectPrototype()));
       
   169 }
       
   170 
       
   171 bool JSWebKitCSSMatrix::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   172 {
       
   173     return getStaticValueSlot<JSWebKitCSSMatrix, Base>(exec, &JSWebKitCSSMatrixTable, this, propertyName, slot);
       
   174 }
       
   175 
       
   176 bool JSWebKitCSSMatrix::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   177 {
       
   178     return getStaticValueDescriptor<JSWebKitCSSMatrix, Base>(exec, &JSWebKitCSSMatrixTable, this, propertyName, descriptor);
       
   179 }
       
   180 
       
   181 JSValue jsWebKitCSSMatrixA(ExecState* exec, JSValue slotBase, const Identifier&)
       
   182 {
       
   183     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   184     UNUSED_PARAM(exec);
       
   185     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   186     JSValue result = jsNumber(exec, imp->a());
       
   187     return result;
       
   188 }
       
   189 
       
   190 JSValue jsWebKitCSSMatrixB(ExecState* exec, JSValue slotBase, const Identifier&)
       
   191 {
       
   192     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   193     UNUSED_PARAM(exec);
       
   194     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   195     JSValue result = jsNumber(exec, imp->b());
       
   196     return result;
       
   197 }
       
   198 
       
   199 JSValue jsWebKitCSSMatrixC(ExecState* exec, JSValue slotBase, const Identifier&)
       
   200 {
       
   201     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   202     UNUSED_PARAM(exec);
       
   203     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   204     JSValue result = jsNumber(exec, imp->c());
       
   205     return result;
       
   206 }
       
   207 
       
   208 JSValue jsWebKitCSSMatrixD(ExecState* exec, JSValue slotBase, const Identifier&)
       
   209 {
       
   210     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   211     UNUSED_PARAM(exec);
       
   212     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   213     JSValue result = jsNumber(exec, imp->d());
       
   214     return result;
       
   215 }
       
   216 
       
   217 JSValue jsWebKitCSSMatrixE(ExecState* exec, JSValue slotBase, const Identifier&)
       
   218 {
       
   219     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   220     UNUSED_PARAM(exec);
       
   221     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   222     JSValue result = jsNumber(exec, imp->e());
       
   223     return result;
       
   224 }
       
   225 
       
   226 JSValue jsWebKitCSSMatrixF(ExecState* exec, JSValue slotBase, const Identifier&)
       
   227 {
       
   228     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   229     UNUSED_PARAM(exec);
       
   230     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   231     JSValue result = jsNumber(exec, imp->f());
       
   232     return result;
       
   233 }
       
   234 
       
   235 JSValue jsWebKitCSSMatrixM11(ExecState* exec, JSValue slotBase, const Identifier&)
       
   236 {
       
   237     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   238     UNUSED_PARAM(exec);
       
   239     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   240     JSValue result = jsNumber(exec, imp->m11());
       
   241     return result;
       
   242 }
       
   243 
       
   244 JSValue jsWebKitCSSMatrixM12(ExecState* exec, JSValue slotBase, const Identifier&)
       
   245 {
       
   246     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   247     UNUSED_PARAM(exec);
       
   248     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   249     JSValue result = jsNumber(exec, imp->m12());
       
   250     return result;
       
   251 }
       
   252 
       
   253 JSValue jsWebKitCSSMatrixM13(ExecState* exec, JSValue slotBase, const Identifier&)
       
   254 {
       
   255     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   256     UNUSED_PARAM(exec);
       
   257     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   258     JSValue result = jsNumber(exec, imp->m13());
       
   259     return result;
       
   260 }
       
   261 
       
   262 JSValue jsWebKitCSSMatrixM14(ExecState* exec, JSValue slotBase, const Identifier&)
       
   263 {
       
   264     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   265     UNUSED_PARAM(exec);
       
   266     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   267     JSValue result = jsNumber(exec, imp->m14());
       
   268     return result;
       
   269 }
       
   270 
       
   271 JSValue jsWebKitCSSMatrixM21(ExecState* exec, JSValue slotBase, const Identifier&)
       
   272 {
       
   273     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   274     UNUSED_PARAM(exec);
       
   275     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   276     JSValue result = jsNumber(exec, imp->m21());
       
   277     return result;
       
   278 }
       
   279 
       
   280 JSValue jsWebKitCSSMatrixM22(ExecState* exec, JSValue slotBase, const Identifier&)
       
   281 {
       
   282     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   283     UNUSED_PARAM(exec);
       
   284     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   285     JSValue result = jsNumber(exec, imp->m22());
       
   286     return result;
       
   287 }
       
   288 
       
   289 JSValue jsWebKitCSSMatrixM23(ExecState* exec, JSValue slotBase, const Identifier&)
       
   290 {
       
   291     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   292     UNUSED_PARAM(exec);
       
   293     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   294     JSValue result = jsNumber(exec, imp->m23());
       
   295     return result;
       
   296 }
       
   297 
       
   298 JSValue jsWebKitCSSMatrixM24(ExecState* exec, JSValue slotBase, const Identifier&)
       
   299 {
       
   300     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   301     UNUSED_PARAM(exec);
       
   302     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   303     JSValue result = jsNumber(exec, imp->m24());
       
   304     return result;
       
   305 }
       
   306 
       
   307 JSValue jsWebKitCSSMatrixM31(ExecState* exec, JSValue slotBase, const Identifier&)
       
   308 {
       
   309     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   310     UNUSED_PARAM(exec);
       
   311     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   312     JSValue result = jsNumber(exec, imp->m31());
       
   313     return result;
       
   314 }
       
   315 
       
   316 JSValue jsWebKitCSSMatrixM32(ExecState* exec, JSValue slotBase, const Identifier&)
       
   317 {
       
   318     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   319     UNUSED_PARAM(exec);
       
   320     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   321     JSValue result = jsNumber(exec, imp->m32());
       
   322     return result;
       
   323 }
       
   324 
       
   325 JSValue jsWebKitCSSMatrixM33(ExecState* exec, JSValue slotBase, const Identifier&)
       
   326 {
       
   327     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   328     UNUSED_PARAM(exec);
       
   329     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   330     JSValue result = jsNumber(exec, imp->m33());
       
   331     return result;
       
   332 }
       
   333 
       
   334 JSValue jsWebKitCSSMatrixM34(ExecState* exec, JSValue slotBase, const Identifier&)
       
   335 {
       
   336     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   337     UNUSED_PARAM(exec);
       
   338     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   339     JSValue result = jsNumber(exec, imp->m34());
       
   340     return result;
       
   341 }
       
   342 
       
   343 JSValue jsWebKitCSSMatrixM41(ExecState* exec, JSValue slotBase, const Identifier&)
       
   344 {
       
   345     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   346     UNUSED_PARAM(exec);
       
   347     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   348     JSValue result = jsNumber(exec, imp->m41());
       
   349     return result;
       
   350 }
       
   351 
       
   352 JSValue jsWebKitCSSMatrixM42(ExecState* exec, JSValue slotBase, const Identifier&)
       
   353 {
       
   354     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   355     UNUSED_PARAM(exec);
       
   356     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   357     JSValue result = jsNumber(exec, imp->m42());
       
   358     return result;
       
   359 }
       
   360 
       
   361 JSValue jsWebKitCSSMatrixM43(ExecState* exec, JSValue slotBase, const Identifier&)
       
   362 {
       
   363     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   364     UNUSED_PARAM(exec);
       
   365     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   366     JSValue result = jsNumber(exec, imp->m43());
       
   367     return result;
       
   368 }
       
   369 
       
   370 JSValue jsWebKitCSSMatrixM44(ExecState* exec, JSValue slotBase, const Identifier&)
       
   371 {
       
   372     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   373     UNUSED_PARAM(exec);
       
   374     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   375     JSValue result = jsNumber(exec, imp->m44());
       
   376     return result;
       
   377 }
       
   378 
       
   379 JSValue jsWebKitCSSMatrixConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   380 {
       
   381     JSWebKitCSSMatrix* domObject = static_cast<JSWebKitCSSMatrix*>(asObject(slotBase));
       
   382     return JSWebKitCSSMatrix::getConstructor(exec, domObject->globalObject());
       
   383 }
       
   384 void JSWebKitCSSMatrix::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   385 {
       
   386     lookupPut<JSWebKitCSSMatrix, Base>(exec, propertyName, value, &JSWebKitCSSMatrixTable, this, slot);
       
   387 }
       
   388 
       
   389 void setJSWebKitCSSMatrixA(ExecState* exec, JSObject* thisObject, JSValue value)
       
   390 {
       
   391     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   392     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   393     imp->setA(value.toNumber(exec));
       
   394 }
       
   395 
       
   396 void setJSWebKitCSSMatrixB(ExecState* exec, JSObject* thisObject, JSValue value)
       
   397 {
       
   398     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   399     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   400     imp->setB(value.toNumber(exec));
       
   401 }
       
   402 
       
   403 void setJSWebKitCSSMatrixC(ExecState* exec, JSObject* thisObject, JSValue value)
       
   404 {
       
   405     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   406     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   407     imp->setC(value.toNumber(exec));
       
   408 }
       
   409 
       
   410 void setJSWebKitCSSMatrixD(ExecState* exec, JSObject* thisObject, JSValue value)
       
   411 {
       
   412     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   413     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   414     imp->setD(value.toNumber(exec));
       
   415 }
       
   416 
       
   417 void setJSWebKitCSSMatrixE(ExecState* exec, JSObject* thisObject, JSValue value)
       
   418 {
       
   419     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   420     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   421     imp->setE(value.toNumber(exec));
       
   422 }
       
   423 
       
   424 void setJSWebKitCSSMatrixF(ExecState* exec, JSObject* thisObject, JSValue value)
       
   425 {
       
   426     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   427     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   428     imp->setF(value.toNumber(exec));
       
   429 }
       
   430 
       
   431 void setJSWebKitCSSMatrixM11(ExecState* exec, JSObject* thisObject, JSValue value)
       
   432 {
       
   433     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   434     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   435     imp->setM11(value.toNumber(exec));
       
   436 }
       
   437 
       
   438 void setJSWebKitCSSMatrixM12(ExecState* exec, JSObject* thisObject, JSValue value)
       
   439 {
       
   440     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   441     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   442     imp->setM12(value.toNumber(exec));
       
   443 }
       
   444 
       
   445 void setJSWebKitCSSMatrixM13(ExecState* exec, JSObject* thisObject, JSValue value)
       
   446 {
       
   447     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   448     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   449     imp->setM13(value.toNumber(exec));
       
   450 }
       
   451 
       
   452 void setJSWebKitCSSMatrixM14(ExecState* exec, JSObject* thisObject, JSValue value)
       
   453 {
       
   454     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   455     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   456     imp->setM14(value.toNumber(exec));
       
   457 }
       
   458 
       
   459 void setJSWebKitCSSMatrixM21(ExecState* exec, JSObject* thisObject, JSValue value)
       
   460 {
       
   461     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   462     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   463     imp->setM21(value.toNumber(exec));
       
   464 }
       
   465 
       
   466 void setJSWebKitCSSMatrixM22(ExecState* exec, JSObject* thisObject, JSValue value)
       
   467 {
       
   468     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   469     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   470     imp->setM22(value.toNumber(exec));
       
   471 }
       
   472 
       
   473 void setJSWebKitCSSMatrixM23(ExecState* exec, JSObject* thisObject, JSValue value)
       
   474 {
       
   475     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   476     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   477     imp->setM23(value.toNumber(exec));
       
   478 }
       
   479 
       
   480 void setJSWebKitCSSMatrixM24(ExecState* exec, JSObject* thisObject, JSValue value)
       
   481 {
       
   482     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   483     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   484     imp->setM24(value.toNumber(exec));
       
   485 }
       
   486 
       
   487 void setJSWebKitCSSMatrixM31(ExecState* exec, JSObject* thisObject, JSValue value)
       
   488 {
       
   489     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   490     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   491     imp->setM31(value.toNumber(exec));
       
   492 }
       
   493 
       
   494 void setJSWebKitCSSMatrixM32(ExecState* exec, JSObject* thisObject, JSValue value)
       
   495 {
       
   496     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   497     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   498     imp->setM32(value.toNumber(exec));
       
   499 }
       
   500 
       
   501 void setJSWebKitCSSMatrixM33(ExecState* exec, JSObject* thisObject, JSValue value)
       
   502 {
       
   503     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   504     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   505     imp->setM33(value.toNumber(exec));
       
   506 }
       
   507 
       
   508 void setJSWebKitCSSMatrixM34(ExecState* exec, JSObject* thisObject, JSValue value)
       
   509 {
       
   510     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   511     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   512     imp->setM34(value.toNumber(exec));
       
   513 }
       
   514 
       
   515 void setJSWebKitCSSMatrixM41(ExecState* exec, JSObject* thisObject, JSValue value)
       
   516 {
       
   517     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   518     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   519     imp->setM41(value.toNumber(exec));
       
   520 }
       
   521 
       
   522 void setJSWebKitCSSMatrixM42(ExecState* exec, JSObject* thisObject, JSValue value)
       
   523 {
       
   524     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   525     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   526     imp->setM42(value.toNumber(exec));
       
   527 }
       
   528 
       
   529 void setJSWebKitCSSMatrixM43(ExecState* exec, JSObject* thisObject, JSValue value)
       
   530 {
       
   531     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   532     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   533     imp->setM43(value.toNumber(exec));
       
   534 }
       
   535 
       
   536 void setJSWebKitCSSMatrixM44(ExecState* exec, JSObject* thisObject, JSValue value)
       
   537 {
       
   538     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(thisObject);
       
   539     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   540     imp->setM44(value.toNumber(exec));
       
   541 }
       
   542 
       
   543 JSValue JSWebKitCSSMatrix::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   544 {
       
   545     return getDOMConstructor<JSWebKitCSSMatrixConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   546 }
       
   547 
       
   548 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionSetMatrixValue(ExecState* exec)
       
   549 {
       
   550     JSValue thisValue = exec->hostThisValue();
       
   551     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   552         return throwVMTypeError(exec);
       
   553     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   554     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   555     ExceptionCode ec = 0;
       
   556     const String& string = ustringToString(exec->argument(0).toString(exec));
       
   557 
       
   558     imp->setMatrixValue(string, ec);
       
   559     setDOMException(exec, ec);
       
   560     return JSValue::encode(jsUndefined());
       
   561 }
       
   562 
       
   563 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionMultiply(ExecState* exec)
       
   564 {
       
   565     JSValue thisValue = exec->hostThisValue();
       
   566     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   567         return throwVMTypeError(exec);
       
   568     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   569     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   570     WebKitCSSMatrix* secondMatrix = toWebKitCSSMatrix(exec->argument(0));
       
   571 
       
   572 
       
   573     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->multiply(secondMatrix)));
       
   574     return JSValue::encode(result);
       
   575 }
       
   576 
       
   577 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionInverse(ExecState* exec)
       
   578 {
       
   579     JSValue thisValue = exec->hostThisValue();
       
   580     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   581         return throwVMTypeError(exec);
       
   582     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   583     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   584     ExceptionCode ec = 0;
       
   585 
       
   586 
       
   587     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->inverse(ec)));
       
   588     setDOMException(exec, ec);
       
   589     return JSValue::encode(result);
       
   590 }
       
   591 
       
   592 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionTranslate(ExecState* exec)
       
   593 {
       
   594     JSValue thisValue = exec->hostThisValue();
       
   595     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   596         return throwVMTypeError(exec);
       
   597     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   598     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   599     double x = exec->argument(0).toNumber(exec);
       
   600     double y = exec->argument(1).toNumber(exec);
       
   601     double z = exec->argument(2).toNumber(exec);
       
   602 
       
   603 
       
   604     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->translate(x, y, z)));
       
   605     return JSValue::encode(result);
       
   606 }
       
   607 
       
   608 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionScale(ExecState* exec)
       
   609 {
       
   610     JSValue thisValue = exec->hostThisValue();
       
   611     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   612         return throwVMTypeError(exec);
       
   613     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   614     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   615     double scaleX = exec->argument(0).toNumber(exec);
       
   616     double scaleY = exec->argument(1).toNumber(exec);
       
   617     double scaleZ = exec->argument(2).toNumber(exec);
       
   618 
       
   619 
       
   620     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->scale(scaleX, scaleY, scaleZ)));
       
   621     return JSValue::encode(result);
       
   622 }
       
   623 
       
   624 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotate(ExecState* exec)
       
   625 {
       
   626     JSValue thisValue = exec->hostThisValue();
       
   627     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   628         return throwVMTypeError(exec);
       
   629     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   630     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   631     double rotX = exec->argument(0).toNumber(exec);
       
   632     double rotY = exec->argument(1).toNumber(exec);
       
   633     double rotZ = exec->argument(2).toNumber(exec);
       
   634 
       
   635 
       
   636     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->rotate(rotX, rotY, rotZ)));
       
   637     return JSValue::encode(result);
       
   638 }
       
   639 
       
   640 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionRotateAxisAngle(ExecState* exec)
       
   641 {
       
   642     JSValue thisValue = exec->hostThisValue();
       
   643     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   644         return throwVMTypeError(exec);
       
   645     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   646     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   647     double x = exec->argument(0).toNumber(exec);
       
   648     double y = exec->argument(1).toNumber(exec);
       
   649     double z = exec->argument(2).toNumber(exec);
       
   650     double angle = exec->argument(3).toNumber(exec);
       
   651 
       
   652 
       
   653     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->rotateAxisAngle(x, y, z, angle)));
       
   654     return JSValue::encode(result);
       
   655 }
       
   656 
       
   657 EncodedJSValue JSC_HOST_CALL jsWebKitCSSMatrixPrototypeFunctionToString(ExecState* exec)
       
   658 {
       
   659     JSValue thisValue = exec->hostThisValue();
       
   660     if (!thisValue.inherits(&JSWebKitCSSMatrix::s_info))
       
   661         return throwVMTypeError(exec);
       
   662     JSWebKitCSSMatrix* castedThis = static_cast<JSWebKitCSSMatrix*>(asObject(thisValue));
       
   663     WebKitCSSMatrix* imp = static_cast<WebKitCSSMatrix*>(castedThis->impl());
       
   664 
       
   665 
       
   666     JSC::JSValue result = jsString(exec, imp->toString());
       
   667     return JSValue::encode(result);
       
   668 }
       
   669 
       
   670 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, WebKitCSSMatrix* object)
       
   671 {
       
   672     return getDOMObjectWrapper<JSWebKitCSSMatrix>(exec, globalObject, object);
       
   673 }
       
   674 WebKitCSSMatrix* toWebKitCSSMatrix(JSC::JSValue value)
       
   675 {
       
   676     return value.inherits(&JSWebKitCSSMatrix::s_info) ? static_cast<JSWebKitCSSMatrix*>(asObject(value))->impl() : 0;
       
   677 }
       
   678 
       
   679 }