WebCore/generated/JSSVGTextPositioningElement.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 "JSSVGTextPositioningElement.h"
       
    26 
       
    27 #include "JSSVGAnimatedLengthList.h"
       
    28 #include "JSSVGAnimatedNumberList.h"
       
    29 #include "SVGTextPositioningElement.h"
       
    30 #include <wtf/GetPtr.h>
       
    31 
       
    32 using namespace JSC;
       
    33 
       
    34 namespace WebCore {
       
    35 
       
    36 ASSERT_CLASS_FITS_IN_CELL(JSSVGTextPositioningElement);
       
    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 JSSVGTextPositioningElementTableValues[7] =
       
    46 {
       
    47     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGTextPositioningElementX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    48     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGTextPositioningElementY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    49     { "dx", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGTextPositioningElementDx), (intptr_t)0 THUNK_GENERATOR(0) },
       
    50     { "dy", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGTextPositioningElementDy), (intptr_t)0 THUNK_GENERATOR(0) },
       
    51     { "rotate", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGTextPositioningElementRotate), (intptr_t)0 THUNK_GENERATOR(0) },
       
    52     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGTextPositioningElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    53     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    54 };
       
    55 
       
    56 #undef THUNK_GENERATOR
       
    57 static JSC_CONST_HASHTABLE HashTable JSSVGTextPositioningElementTable = { 17, 15, JSSVGTextPositioningElementTableValues, 0 };
       
    58 /* Hash table for constructor */
       
    59 #if ENABLE(JIT)
       
    60 #define THUNK_GENERATOR(generator) , generator
       
    61 #else
       
    62 #define THUNK_GENERATOR(generator)
       
    63 #endif
       
    64 
       
    65 static const HashTableValue JSSVGTextPositioningElementConstructorTableValues[1] =
       
    66 {
       
    67     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    68 };
       
    69 
       
    70 #undef THUNK_GENERATOR
       
    71 static JSC_CONST_HASHTABLE HashTable JSSVGTextPositioningElementConstructorTable = { 1, 0, JSSVGTextPositioningElementConstructorTableValues, 0 };
       
    72 class JSSVGTextPositioningElementConstructor : public DOMConstructorObject {
       
    73 public:
       
    74     JSSVGTextPositioningElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    75 
       
    76     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    77     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    78     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    79     static const JSC::ClassInfo s_info;
       
    80     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    81     {
       
    82         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    83     }
       
    84 protected:
       
    85     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    86 };
       
    87 
       
    88 const ClassInfo JSSVGTextPositioningElementConstructor::s_info = { "SVGTextPositioningElementConstructor", 0, &JSSVGTextPositioningElementConstructorTable, 0 };
       
    89 
       
    90 JSSVGTextPositioningElementConstructor::JSSVGTextPositioningElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    91     : DOMConstructorObject(JSSVGTextPositioningElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
    92 {
       
    93     putDirect(exec->propertyNames().prototype, JSSVGTextPositioningElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
    94 }
       
    95 
       
    96 bool JSSVGTextPositioningElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
    97 {
       
    98     return getStaticValueSlot<JSSVGTextPositioningElementConstructor, DOMObject>(exec, &JSSVGTextPositioningElementConstructorTable, this, propertyName, slot);
       
    99 }
       
   100 
       
   101 bool JSSVGTextPositioningElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   102 {
       
   103     return getStaticValueDescriptor<JSSVGTextPositioningElementConstructor, DOMObject>(exec, &JSSVGTextPositioningElementConstructorTable, this, propertyName, descriptor);
       
   104 }
       
   105 
       
   106 /* Hash table for prototype */
       
   107 #if ENABLE(JIT)
       
   108 #define THUNK_GENERATOR(generator) , generator
       
   109 #else
       
   110 #define THUNK_GENERATOR(generator)
       
   111 #endif
       
   112 
       
   113 static const HashTableValue JSSVGTextPositioningElementPrototypeTableValues[1] =
       
   114 {
       
   115     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   116 };
       
   117 
       
   118 #undef THUNK_GENERATOR
       
   119 static JSC_CONST_HASHTABLE HashTable JSSVGTextPositioningElementPrototypeTable = { 1, 0, JSSVGTextPositioningElementPrototypeTableValues, 0 };
       
   120 const ClassInfo JSSVGTextPositioningElementPrototype::s_info = { "SVGTextPositioningElementPrototype", 0, &JSSVGTextPositioningElementPrototypeTable, 0 };
       
   121 
       
   122 JSObject* JSSVGTextPositioningElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   123 {
       
   124     return getDOMPrototype<JSSVGTextPositioningElement>(exec, globalObject);
       
   125 }
       
   126 
       
   127 const ClassInfo JSSVGTextPositioningElement::s_info = { "SVGTextPositioningElement", &JSSVGTextContentElement::s_info, &JSSVGTextPositioningElementTable, 0 };
       
   128 
       
   129 JSSVGTextPositioningElement::JSSVGTextPositioningElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGTextPositioningElement> impl)
       
   130     : JSSVGTextContentElement(structure, globalObject, impl)
       
   131 {
       
   132 }
       
   133 
       
   134 JSObject* JSSVGTextPositioningElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   135 {
       
   136     return new (exec) JSSVGTextPositioningElementPrototype(globalObject, JSSVGTextPositioningElementPrototype::createStructure(JSSVGTextContentElementPrototype::self(exec, globalObject)));
       
   137 }
       
   138 
       
   139 bool JSSVGTextPositioningElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   140 {
       
   141     return getStaticValueSlot<JSSVGTextPositioningElement, Base>(exec, &JSSVGTextPositioningElementTable, this, propertyName, slot);
       
   142 }
       
   143 
       
   144 bool JSSVGTextPositioningElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   145 {
       
   146     return getStaticValueDescriptor<JSSVGTextPositioningElement, Base>(exec, &JSSVGTextPositioningElementTable, this, propertyName, descriptor);
       
   147 }
       
   148 
       
   149 JSValue jsSVGTextPositioningElementX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   150 {
       
   151     JSSVGTextPositioningElement* castedThis = static_cast<JSSVGTextPositioningElement*>(asObject(slotBase));
       
   152     UNUSED_PARAM(exec);
       
   153     SVGTextPositioningElement* imp = static_cast<SVGTextPositioningElement*>(castedThis->impl());
       
   154     RefPtr<SVGAnimatedLengthList> obj = imp->xAnimated();
       
   155     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   156     return result;
       
   157 }
       
   158 
       
   159 JSValue jsSVGTextPositioningElementY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   160 {
       
   161     JSSVGTextPositioningElement* castedThis = static_cast<JSSVGTextPositioningElement*>(asObject(slotBase));
       
   162     UNUSED_PARAM(exec);
       
   163     SVGTextPositioningElement* imp = static_cast<SVGTextPositioningElement*>(castedThis->impl());
       
   164     RefPtr<SVGAnimatedLengthList> obj = imp->yAnimated();
       
   165     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   166     return result;
       
   167 }
       
   168 
       
   169 JSValue jsSVGTextPositioningElementDx(ExecState* exec, JSValue slotBase, const Identifier&)
       
   170 {
       
   171     JSSVGTextPositioningElement* castedThis = static_cast<JSSVGTextPositioningElement*>(asObject(slotBase));
       
   172     UNUSED_PARAM(exec);
       
   173     SVGTextPositioningElement* imp = static_cast<SVGTextPositioningElement*>(castedThis->impl());
       
   174     RefPtr<SVGAnimatedLengthList> obj = imp->dxAnimated();
       
   175     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   176     return result;
       
   177 }
       
   178 
       
   179 JSValue jsSVGTextPositioningElementDy(ExecState* exec, JSValue slotBase, const Identifier&)
       
   180 {
       
   181     JSSVGTextPositioningElement* castedThis = static_cast<JSSVGTextPositioningElement*>(asObject(slotBase));
       
   182     UNUSED_PARAM(exec);
       
   183     SVGTextPositioningElement* imp = static_cast<SVGTextPositioningElement*>(castedThis->impl());
       
   184     RefPtr<SVGAnimatedLengthList> obj = imp->dyAnimated();
       
   185     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   186     return result;
       
   187 }
       
   188 
       
   189 JSValue jsSVGTextPositioningElementRotate(ExecState* exec, JSValue slotBase, const Identifier&)
       
   190 {
       
   191     JSSVGTextPositioningElement* castedThis = static_cast<JSSVGTextPositioningElement*>(asObject(slotBase));
       
   192     UNUSED_PARAM(exec);
       
   193     SVGTextPositioningElement* imp = static_cast<SVGTextPositioningElement*>(castedThis->impl());
       
   194     RefPtr<SVGAnimatedNumberList> obj = imp->rotateAnimated();
       
   195     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   196     return result;
       
   197 }
       
   198 
       
   199 JSValue jsSVGTextPositioningElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   200 {
       
   201     JSSVGTextPositioningElement* domObject = static_cast<JSSVGTextPositioningElement*>(asObject(slotBase));
       
   202     return JSSVGTextPositioningElement::getConstructor(exec, domObject->globalObject());
       
   203 }
       
   204 JSValue JSSVGTextPositioningElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   205 {
       
   206     return getDOMConstructor<JSSVGTextPositioningElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   207 }
       
   208 
       
   209 
       
   210 }
       
   211 
       
   212 #endif // ENABLE(SVG)