WebCore/generated/JSSVGPathSegArcRel.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 
       
    23 #if ENABLE(SVG)
       
    24 
       
    25 #include "JSSVGPathSegArcRel.h"
       
    26 
       
    27 #include "SVGPathSegArc.h"
       
    28 #include <runtime/JSNumberCell.h>
       
    29 #include <wtf/GetPtr.h>
       
    30 
       
    31 using namespace JSC;
       
    32 
       
    33 namespace WebCore {
       
    34 
       
    35 ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegArcRel);
       
    36 
       
    37 /* Hash table */
       
    38 #if ENABLE(JIT)
       
    39 #define THUNK_GENERATOR(generator) , generator
       
    40 #else
       
    41 #define THUNK_GENERATOR(generator)
       
    42 #endif
       
    43 
       
    44 static const HashTableValue JSSVGPathSegArcRelTableValues[9] =
       
    45 {
       
    46     { "x", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelX), (intptr_t)setJSSVGPathSegArcRelX THUNK_GENERATOR(0) },
       
    47     { "y", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelY), (intptr_t)setJSSVGPathSegArcRelY THUNK_GENERATOR(0) },
       
    48     { "r1", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelR1), (intptr_t)setJSSVGPathSegArcRelR1 THUNK_GENERATOR(0) },
       
    49     { "r2", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelR2), (intptr_t)setJSSVGPathSegArcRelR2 THUNK_GENERATOR(0) },
       
    50     { "angle", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelAngle), (intptr_t)setJSSVGPathSegArcRelAngle THUNK_GENERATOR(0) },
       
    51     { "largeArcFlag", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelLargeArcFlag), (intptr_t)setJSSVGPathSegArcRelLargeArcFlag THUNK_GENERATOR(0) },
       
    52     { "sweepFlag", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelSweepFlag), (intptr_t)setJSSVGPathSegArcRelSweepFlag THUNK_GENERATOR(0) },
       
    53     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcRelConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    54     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    55 };
       
    56 
       
    57 #undef THUNK_GENERATOR
       
    58 static JSC_CONST_HASHTABLE HashTable JSSVGPathSegArcRelTable = { 17, 15, JSSVGPathSegArcRelTableValues, 0 };
       
    59 /* Hash table for constructor */
       
    60 #if ENABLE(JIT)
       
    61 #define THUNK_GENERATOR(generator) , generator
       
    62 #else
       
    63 #define THUNK_GENERATOR(generator)
       
    64 #endif
       
    65 
       
    66 static const HashTableValue JSSVGPathSegArcRelConstructorTableValues[1] =
       
    67 {
       
    68     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    69 };
       
    70 
       
    71 #undef THUNK_GENERATOR
       
    72 static JSC_CONST_HASHTABLE HashTable JSSVGPathSegArcRelConstructorTable = { 1, 0, JSSVGPathSegArcRelConstructorTableValues, 0 };
       
    73 class JSSVGPathSegArcRelConstructor : public DOMConstructorObject {
       
    74 public:
       
    75     JSSVGPathSegArcRelConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    76 
       
    77     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    78     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    79     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    80     static const JSC::ClassInfo s_info;
       
    81     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    82     {
       
    83         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    84     }
       
    85 protected:
       
    86     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    87 };
       
    88 
       
    89 const ClassInfo JSSVGPathSegArcRelConstructor::s_info = { "SVGPathSegArcRelConstructor", 0, &JSSVGPathSegArcRelConstructorTable, 0 };
       
    90 
       
    91 JSSVGPathSegArcRelConstructor::JSSVGPathSegArcRelConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    92     : DOMConstructorObject(JSSVGPathSegArcRelConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
    93 {
       
    94     putDirect(exec->propertyNames().prototype, JSSVGPathSegArcRelPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
    95 }
       
    96 
       
    97 bool JSSVGPathSegArcRelConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
    98 {
       
    99     return getStaticValueSlot<JSSVGPathSegArcRelConstructor, DOMObject>(exec, &JSSVGPathSegArcRelConstructorTable, this, propertyName, slot);
       
   100 }
       
   101 
       
   102 bool JSSVGPathSegArcRelConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   103 {
       
   104     return getStaticValueDescriptor<JSSVGPathSegArcRelConstructor, DOMObject>(exec, &JSSVGPathSegArcRelConstructorTable, this, propertyName, descriptor);
       
   105 }
       
   106 
       
   107 /* Hash table for prototype */
       
   108 #if ENABLE(JIT)
       
   109 #define THUNK_GENERATOR(generator) , generator
       
   110 #else
       
   111 #define THUNK_GENERATOR(generator)
       
   112 #endif
       
   113 
       
   114 static const HashTableValue JSSVGPathSegArcRelPrototypeTableValues[1] =
       
   115 {
       
   116     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   117 };
       
   118 
       
   119 #undef THUNK_GENERATOR
       
   120 static JSC_CONST_HASHTABLE HashTable JSSVGPathSegArcRelPrototypeTable = { 1, 0, JSSVGPathSegArcRelPrototypeTableValues, 0 };
       
   121 const ClassInfo JSSVGPathSegArcRelPrototype::s_info = { "SVGPathSegArcRelPrototype", 0, &JSSVGPathSegArcRelPrototypeTable, 0 };
       
   122 
       
   123 JSObject* JSSVGPathSegArcRelPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   124 {
       
   125     return getDOMPrototype<JSSVGPathSegArcRel>(exec, globalObject);
       
   126 }
       
   127 
       
   128 const ClassInfo JSSVGPathSegArcRel::s_info = { "SVGPathSegArcRel", &JSSVGPathSeg::s_info, &JSSVGPathSegArcRelTable, 0 };
       
   129 
       
   130 JSSVGPathSegArcRel::JSSVGPathSegArcRel(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPathSegArcRel> impl)
       
   131     : JSSVGPathSeg(structure, globalObject, impl)
       
   132 {
       
   133 }
       
   134 
       
   135 JSObject* JSSVGPathSegArcRel::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   136 {
       
   137     return new (exec) JSSVGPathSegArcRelPrototype(globalObject, JSSVGPathSegArcRelPrototype::createStructure(JSSVGPathSegPrototype::self(exec, globalObject)));
       
   138 }
       
   139 
       
   140 bool JSSVGPathSegArcRel::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   141 {
       
   142     return getStaticValueSlot<JSSVGPathSegArcRel, Base>(exec, &JSSVGPathSegArcRelTable, this, propertyName, slot);
       
   143 }
       
   144 
       
   145 bool JSSVGPathSegArcRel::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   146 {
       
   147     return getStaticValueDescriptor<JSSVGPathSegArcRel, Base>(exec, &JSSVGPathSegArcRelTable, this, propertyName, descriptor);
       
   148 }
       
   149 
       
   150 JSValue jsSVGPathSegArcRelX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   151 {
       
   152     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   153     UNUSED_PARAM(exec);
       
   154     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   155     JSValue result = jsNumber(exec, imp->x());
       
   156     return result;
       
   157 }
       
   158 
       
   159 JSValue jsSVGPathSegArcRelY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   160 {
       
   161     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   162     UNUSED_PARAM(exec);
       
   163     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   164     JSValue result = jsNumber(exec, imp->y());
       
   165     return result;
       
   166 }
       
   167 
       
   168 JSValue jsSVGPathSegArcRelR1(ExecState* exec, JSValue slotBase, const Identifier&)
       
   169 {
       
   170     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   171     UNUSED_PARAM(exec);
       
   172     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   173     JSValue result = jsNumber(exec, imp->r1());
       
   174     return result;
       
   175 }
       
   176 
       
   177 JSValue jsSVGPathSegArcRelR2(ExecState* exec, JSValue slotBase, const Identifier&)
       
   178 {
       
   179     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   180     UNUSED_PARAM(exec);
       
   181     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   182     JSValue result = jsNumber(exec, imp->r2());
       
   183     return result;
       
   184 }
       
   185 
       
   186 JSValue jsSVGPathSegArcRelAngle(ExecState* exec, JSValue slotBase, const Identifier&)
       
   187 {
       
   188     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   189     UNUSED_PARAM(exec);
       
   190     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   191     JSValue result = jsNumber(exec, imp->angle());
       
   192     return result;
       
   193 }
       
   194 
       
   195 JSValue jsSVGPathSegArcRelLargeArcFlag(ExecState* exec, JSValue slotBase, const Identifier&)
       
   196 {
       
   197     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   198     UNUSED_PARAM(exec);
       
   199     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   200     JSValue result = jsBoolean(imp->largeArcFlag());
       
   201     return result;
       
   202 }
       
   203 
       
   204 JSValue jsSVGPathSegArcRelSweepFlag(ExecState* exec, JSValue slotBase, const Identifier&)
       
   205 {
       
   206     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   207     UNUSED_PARAM(exec);
       
   208     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   209     JSValue result = jsBoolean(imp->sweepFlag());
       
   210     return result;
       
   211 }
       
   212 
       
   213 JSValue jsSVGPathSegArcRelConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   214 {
       
   215     JSSVGPathSegArcRel* domObject = static_cast<JSSVGPathSegArcRel*>(asObject(slotBase));
       
   216     return JSSVGPathSegArcRel::getConstructor(exec, domObject->globalObject());
       
   217 }
       
   218 void JSSVGPathSegArcRel::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   219 {
       
   220     lookupPut<JSSVGPathSegArcRel, Base>(exec, propertyName, value, &JSSVGPathSegArcRelTable, this, slot);
       
   221 }
       
   222 
       
   223 void setJSSVGPathSegArcRelX(ExecState* exec, JSObject* thisObject, JSValue value)
       
   224 {
       
   225     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(thisObject);
       
   226     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   227     imp->setX(value.toFloat(exec));
       
   228     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   229 }
       
   230 
       
   231 void setJSSVGPathSegArcRelY(ExecState* exec, JSObject* thisObject, JSValue value)
       
   232 {
       
   233     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(thisObject);
       
   234     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   235     imp->setY(value.toFloat(exec));
       
   236     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   237 }
       
   238 
       
   239 void setJSSVGPathSegArcRelR1(ExecState* exec, JSObject* thisObject, JSValue value)
       
   240 {
       
   241     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(thisObject);
       
   242     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   243     imp->setR1(value.toFloat(exec));
       
   244     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   245 }
       
   246 
       
   247 void setJSSVGPathSegArcRelR2(ExecState* exec, JSObject* thisObject, JSValue value)
       
   248 {
       
   249     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(thisObject);
       
   250     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   251     imp->setR2(value.toFloat(exec));
       
   252     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   253 }
       
   254 
       
   255 void setJSSVGPathSegArcRelAngle(ExecState* exec, JSObject* thisObject, JSValue value)
       
   256 {
       
   257     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(thisObject);
       
   258     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   259     imp->setAngle(value.toFloat(exec));
       
   260     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   261 }
       
   262 
       
   263 void setJSSVGPathSegArcRelLargeArcFlag(ExecState* exec, JSObject* thisObject, JSValue value)
       
   264 {
       
   265     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(thisObject);
       
   266     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   267     imp->setLargeArcFlag(value.toBoolean(exec));
       
   268     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   269 }
       
   270 
       
   271 void setJSSVGPathSegArcRelSweepFlag(ExecState* exec, JSObject* thisObject, JSValue value)
       
   272 {
       
   273     JSSVGPathSegArcRel* castedThis = static_cast<JSSVGPathSegArcRel*>(thisObject);
       
   274     SVGPathSegArcRel* imp = static_cast<SVGPathSegArcRel*>(castedThis->impl());
       
   275     imp->setSweepFlag(value.toBoolean(exec));
       
   276     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   277 }
       
   278 
       
   279 JSValue JSSVGPathSegArcRel::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   280 {
       
   281     return getDOMConstructor<JSSVGPathSegArcRelConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   282 }
       
   283 
       
   284 
       
   285 }
       
   286 
       
   287 #endif // ENABLE(SVG)