WebCore/generated/JSSVGPathSegLinetoHorizontalAbs.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 "JSSVGPathSegLinetoHorizontalAbs.h"
       
    26 
       
    27 #include "SVGPathSegLinetoHorizontal.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(JSSVGPathSegLinetoHorizontalAbs);
       
    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 JSSVGPathSegLinetoHorizontalAbsTableValues[3] =
       
    45 {
       
    46     { "x", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegLinetoHorizontalAbsX), (intptr_t)setJSSVGPathSegLinetoHorizontalAbsX THUNK_GENERATOR(0) },
       
    47     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegLinetoHorizontalAbsConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    48     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    49 };
       
    50 
       
    51 #undef THUNK_GENERATOR
       
    52 static JSC_CONST_HASHTABLE HashTable JSSVGPathSegLinetoHorizontalAbsTable = { 5, 3, JSSVGPathSegLinetoHorizontalAbsTableValues, 0 };
       
    53 /* Hash table for constructor */
       
    54 #if ENABLE(JIT)
       
    55 #define THUNK_GENERATOR(generator) , generator
       
    56 #else
       
    57 #define THUNK_GENERATOR(generator)
       
    58 #endif
       
    59 
       
    60 static const HashTableValue JSSVGPathSegLinetoHorizontalAbsConstructorTableValues[1] =
       
    61 {
       
    62     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    63 };
       
    64 
       
    65 #undef THUNK_GENERATOR
       
    66 static JSC_CONST_HASHTABLE HashTable JSSVGPathSegLinetoHorizontalAbsConstructorTable = { 1, 0, JSSVGPathSegLinetoHorizontalAbsConstructorTableValues, 0 };
       
    67 class JSSVGPathSegLinetoHorizontalAbsConstructor : public DOMConstructorObject {
       
    68 public:
       
    69     JSSVGPathSegLinetoHorizontalAbsConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    70 
       
    71     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    72     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    73     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    74     static const JSC::ClassInfo s_info;
       
    75     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    76     {
       
    77         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    78     }
       
    79 protected:
       
    80     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    81 };
       
    82 
       
    83 const ClassInfo JSSVGPathSegLinetoHorizontalAbsConstructor::s_info = { "SVGPathSegLinetoHorizontalAbsConstructor", 0, &JSSVGPathSegLinetoHorizontalAbsConstructorTable, 0 };
       
    84 
       
    85 JSSVGPathSegLinetoHorizontalAbsConstructor::JSSVGPathSegLinetoHorizontalAbsConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    86     : DOMConstructorObject(JSSVGPathSegLinetoHorizontalAbsConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
    87 {
       
    88     putDirect(exec->propertyNames().prototype, JSSVGPathSegLinetoHorizontalAbsPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
    89 }
       
    90 
       
    91 bool JSSVGPathSegLinetoHorizontalAbsConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
    92 {
       
    93     return getStaticValueSlot<JSSVGPathSegLinetoHorizontalAbsConstructor, DOMObject>(exec, &JSSVGPathSegLinetoHorizontalAbsConstructorTable, this, propertyName, slot);
       
    94 }
       
    95 
       
    96 bool JSSVGPathSegLinetoHorizontalAbsConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
    97 {
       
    98     return getStaticValueDescriptor<JSSVGPathSegLinetoHorizontalAbsConstructor, DOMObject>(exec, &JSSVGPathSegLinetoHorizontalAbsConstructorTable, this, propertyName, descriptor);
       
    99 }
       
   100 
       
   101 /* Hash table for prototype */
       
   102 #if ENABLE(JIT)
       
   103 #define THUNK_GENERATOR(generator) , generator
       
   104 #else
       
   105 #define THUNK_GENERATOR(generator)
       
   106 #endif
       
   107 
       
   108 static const HashTableValue JSSVGPathSegLinetoHorizontalAbsPrototypeTableValues[1] =
       
   109 {
       
   110     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   111 };
       
   112 
       
   113 #undef THUNK_GENERATOR
       
   114 static JSC_CONST_HASHTABLE HashTable JSSVGPathSegLinetoHorizontalAbsPrototypeTable = { 1, 0, JSSVGPathSegLinetoHorizontalAbsPrototypeTableValues, 0 };
       
   115 const ClassInfo JSSVGPathSegLinetoHorizontalAbsPrototype::s_info = { "SVGPathSegLinetoHorizontalAbsPrototype", 0, &JSSVGPathSegLinetoHorizontalAbsPrototypeTable, 0 };
       
   116 
       
   117 JSObject* JSSVGPathSegLinetoHorizontalAbsPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   118 {
       
   119     return getDOMPrototype<JSSVGPathSegLinetoHorizontalAbs>(exec, globalObject);
       
   120 }
       
   121 
       
   122 const ClassInfo JSSVGPathSegLinetoHorizontalAbs::s_info = { "SVGPathSegLinetoHorizontalAbs", &JSSVGPathSeg::s_info, &JSSVGPathSegLinetoHorizontalAbsTable, 0 };
       
   123 
       
   124 JSSVGPathSegLinetoHorizontalAbs::JSSVGPathSegLinetoHorizontalAbs(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPathSegLinetoHorizontalAbs> impl)
       
   125     : JSSVGPathSeg(structure, globalObject, impl)
       
   126 {
       
   127 }
       
   128 
       
   129 JSObject* JSSVGPathSegLinetoHorizontalAbs::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   130 {
       
   131     return new (exec) JSSVGPathSegLinetoHorizontalAbsPrototype(globalObject, JSSVGPathSegLinetoHorizontalAbsPrototype::createStructure(JSSVGPathSegPrototype::self(exec, globalObject)));
       
   132 }
       
   133 
       
   134 bool JSSVGPathSegLinetoHorizontalAbs::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   135 {
       
   136     return getStaticValueSlot<JSSVGPathSegLinetoHorizontalAbs, Base>(exec, &JSSVGPathSegLinetoHorizontalAbsTable, this, propertyName, slot);
       
   137 }
       
   138 
       
   139 bool JSSVGPathSegLinetoHorizontalAbs::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   140 {
       
   141     return getStaticValueDescriptor<JSSVGPathSegLinetoHorizontalAbs, Base>(exec, &JSSVGPathSegLinetoHorizontalAbsTable, this, propertyName, descriptor);
       
   142 }
       
   143 
       
   144 JSValue jsSVGPathSegLinetoHorizontalAbsX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   145 {
       
   146     JSSVGPathSegLinetoHorizontalAbs* castedThis = static_cast<JSSVGPathSegLinetoHorizontalAbs*>(asObject(slotBase));
       
   147     UNUSED_PARAM(exec);
       
   148     SVGPathSegLinetoHorizontalAbs* imp = static_cast<SVGPathSegLinetoHorizontalAbs*>(castedThis->impl());
       
   149     JSValue result = jsNumber(exec, imp->x());
       
   150     return result;
       
   151 }
       
   152 
       
   153 JSValue jsSVGPathSegLinetoHorizontalAbsConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   154 {
       
   155     JSSVGPathSegLinetoHorizontalAbs* domObject = static_cast<JSSVGPathSegLinetoHorizontalAbs*>(asObject(slotBase));
       
   156     return JSSVGPathSegLinetoHorizontalAbs::getConstructor(exec, domObject->globalObject());
       
   157 }
       
   158 void JSSVGPathSegLinetoHorizontalAbs::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   159 {
       
   160     lookupPut<JSSVGPathSegLinetoHorizontalAbs, Base>(exec, propertyName, value, &JSSVGPathSegLinetoHorizontalAbsTable, this, slot);
       
   161 }
       
   162 
       
   163 void setJSSVGPathSegLinetoHorizontalAbsX(ExecState* exec, JSObject* thisObject, JSValue value)
       
   164 {
       
   165     JSSVGPathSegLinetoHorizontalAbs* castedThis = static_cast<JSSVGPathSegLinetoHorizontalAbs*>(thisObject);
       
   166     SVGPathSegLinetoHorizontalAbs* imp = static_cast<SVGPathSegLinetoHorizontalAbs*>(castedThis->impl());
       
   167     imp->setX(value.toFloat(exec));
       
   168     JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName());
       
   169 }
       
   170 
       
   171 JSValue JSSVGPathSegLinetoHorizontalAbs::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   172 {
       
   173     return getDOMConstructor<JSSVGPathSegLinetoHorizontalAbsConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   174 }
       
   175 
       
   176 
       
   177 }
       
   178 
       
   179 #endif // ENABLE(SVG)