2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
25 #include "JSSVGPathSegLinetoVerticalRel.h"
27 #include "SVGPathSegLinetoVertical.h"
28 #include <runtime/Error.h>
29 #include <wtf/GetPtr.h>
35 ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegLinetoVerticalRel);
39 #define THUNK_GENERATOR(generator) , generator
41 #define THUNK_GENERATOR(generator)
44 #define INTRINSIC(intrinsic) , intrinsic
46 #define INTRINSIC(intrinsic)
49 static const HashTableValue JSSVGPathSegLinetoVerticalRelTableValues[] =
51 { "y", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegLinetoVerticalRelY), (intptr_t)setJSSVGPathSegLinetoVerticalRelY THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
52 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegLinetoVerticalRelConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
53 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
56 #undef THUNK_GENERATOR
57 static const HashTable JSSVGPathSegLinetoVerticalRelTable = { 4, 3, JSSVGPathSegLinetoVerticalRelTableValues, 0 };
58 /* Hash table for constructor */
60 #define THUNK_GENERATOR(generator) , generator
62 #define THUNK_GENERATOR(generator)
65 #define INTRINSIC(intrinsic) , intrinsic
67 #define INTRINSIC(intrinsic)
70 static const HashTableValue JSSVGPathSegLinetoVerticalRelConstructorTableValues[] =
72 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
75 #undef THUNK_GENERATOR
76 static const HashTable JSSVGPathSegLinetoVerticalRelConstructorTable = { 1, 0, JSSVGPathSegLinetoVerticalRelConstructorTableValues, 0 };
77 const ClassInfo JSSVGPathSegLinetoVerticalRelConstructor::s_info = { "SVGPathSegLinetoVerticalRelConstructor", &DOMConstructorObject::s_info, &JSSVGPathSegLinetoVerticalRelConstructorTable, 0, CREATE_METHOD_TABLE(JSSVGPathSegLinetoVerticalRelConstructor) };
79 JSSVGPathSegLinetoVerticalRelConstructor::JSSVGPathSegLinetoVerticalRelConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
80 : DOMConstructorObject(structure, globalObject)
84 void JSSVGPathSegLinetoVerticalRelConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
86 Base::finishCreation(exec->globalData());
87 ASSERT(inherits(&s_info));
88 putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGPathSegLinetoVerticalRelPrototype::self(exec, globalObject), DontDelete | ReadOnly);
91 bool JSSVGPathSegLinetoVerticalRelConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
93 return getStaticValueSlot<JSSVGPathSegLinetoVerticalRelConstructor, JSDOMWrapper>(exec, &JSSVGPathSegLinetoVerticalRelConstructorTable, static_cast<JSSVGPathSegLinetoVerticalRelConstructor*>(cell), propertyName, slot);
96 bool JSSVGPathSegLinetoVerticalRelConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
98 return getStaticValueDescriptor<JSSVGPathSegLinetoVerticalRelConstructor, JSDOMWrapper>(exec, &JSSVGPathSegLinetoVerticalRelConstructorTable, static_cast<JSSVGPathSegLinetoVerticalRelConstructor*>(object), propertyName, descriptor);
101 /* Hash table for prototype */
103 #define THUNK_GENERATOR(generator) , generator
105 #define THUNK_GENERATOR(generator)
108 #define INTRINSIC(intrinsic) , intrinsic
110 #define INTRINSIC(intrinsic)
113 static const HashTableValue JSSVGPathSegLinetoVerticalRelPrototypeTableValues[] =
115 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
118 #undef THUNK_GENERATOR
119 static const HashTable JSSVGPathSegLinetoVerticalRelPrototypeTable = { 1, 0, JSSVGPathSegLinetoVerticalRelPrototypeTableValues, 0 };
120 const ClassInfo JSSVGPathSegLinetoVerticalRelPrototype::s_info = { "SVGPathSegLinetoVerticalRelPrototype", &JSC::JSNonFinalObject::s_info, &JSSVGPathSegLinetoVerticalRelPrototypeTable, 0, CREATE_METHOD_TABLE(JSSVGPathSegLinetoVerticalRelPrototype) };
122 JSObject* JSSVGPathSegLinetoVerticalRelPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
124 return getDOMPrototype<JSSVGPathSegLinetoVerticalRel>(exec, globalObject);
127 const ClassInfo JSSVGPathSegLinetoVerticalRel::s_info = { "SVGPathSegLinetoVerticalRel", &JSSVGPathSeg::s_info, &JSSVGPathSegLinetoVerticalRelTable, 0 , CREATE_METHOD_TABLE(JSSVGPathSegLinetoVerticalRel) };
129 JSSVGPathSegLinetoVerticalRel::JSSVGPathSegLinetoVerticalRel(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPathSegLinetoVerticalRel> impl)
130 : JSSVGPathSeg(structure, globalObject, impl)
134 void JSSVGPathSegLinetoVerticalRel::finishCreation(JSGlobalData& globalData)
136 Base::finishCreation(globalData);
137 ASSERT(inherits(&s_info));
140 JSObject* JSSVGPathSegLinetoVerticalRel::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
142 return JSSVGPathSegLinetoVerticalRelPrototype::create(exec->globalData(), globalObject, JSSVGPathSegLinetoVerticalRelPrototype::createStructure(exec->globalData(), globalObject, JSSVGPathSegPrototype::self(exec, globalObject)));
145 bool JSSVGPathSegLinetoVerticalRel::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
147 JSSVGPathSegLinetoVerticalRel* thisObject = jsCast<JSSVGPathSegLinetoVerticalRel*>(cell);
148 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
149 return getStaticValueSlot<JSSVGPathSegLinetoVerticalRel, Base>(exec, &JSSVGPathSegLinetoVerticalRelTable, thisObject, propertyName, slot);
152 bool JSSVGPathSegLinetoVerticalRel::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
154 JSSVGPathSegLinetoVerticalRel* thisObject = jsCast<JSSVGPathSegLinetoVerticalRel*>(object);
155 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
156 return getStaticValueDescriptor<JSSVGPathSegLinetoVerticalRel, Base>(exec, &JSSVGPathSegLinetoVerticalRelTable, thisObject, propertyName, descriptor);
159 JSValue jsSVGPathSegLinetoVerticalRelY(ExecState* exec, JSValue slotBase, const Identifier&)
161 JSSVGPathSegLinetoVerticalRel* castedThis = static_cast<JSSVGPathSegLinetoVerticalRel*>(asObject(slotBase));
163 SVGPathSegLinetoVerticalRel* imp = static_cast<SVGPathSegLinetoVerticalRel*>(castedThis->impl());
164 JSValue result = jsNumber(imp->y());
169 JSValue jsSVGPathSegLinetoVerticalRelConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
171 JSSVGPathSegLinetoVerticalRel* domObject = static_cast<JSSVGPathSegLinetoVerticalRel*>(asObject(slotBase));
172 return JSSVGPathSegLinetoVerticalRel::getConstructor(exec, domObject->globalObject());
175 void JSSVGPathSegLinetoVerticalRel::put(JSCell* cell, ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
177 JSSVGPathSegLinetoVerticalRel* thisObject = jsCast<JSSVGPathSegLinetoVerticalRel*>(cell);
178 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
179 lookupPut<JSSVGPathSegLinetoVerticalRel, Base>(exec, propertyName, value, &JSSVGPathSegLinetoVerticalRelTable, thisObject, slot);
182 void setJSSVGPathSegLinetoVerticalRelY(ExecState* exec, JSObject* thisObject, JSValue value)
184 JSSVGPathSegLinetoVerticalRel* castedThis = static_cast<JSSVGPathSegLinetoVerticalRel*>(thisObject);
185 SVGPathSegLinetoVerticalRel* imp = static_cast<SVGPathSegLinetoVerticalRel*>(castedThis->impl());
186 imp->setY(value.toFloat(exec));
190 JSValue JSSVGPathSegLinetoVerticalRel::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
192 return getDOMConstructor<JSSVGPathSegLinetoVerticalRelConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
198 #endif // ENABLE(SVG)