tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSSVGPathSegLinetoVerticalRel.cpp
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 "JSSVGPathSegLinetoVerticalRel.h"
26
27 #include "SVGPathSegLinetoVertical.h"
28 #include <runtime/Error.h>
29 #include <wtf/GetPtr.h>
30
31 using namespace JSC;
32
33 namespace WebCore {
34
35 ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegLinetoVerticalRel);
36
37 /* Hash table */
38 #if ENABLE(JIT)
39 #define THUNK_GENERATOR(generator) , generator
40 #else
41 #define THUNK_GENERATOR(generator)
42 #endif
43 #if ENABLE(DFG_JIT)
44 #define INTRINSIC(intrinsic) , intrinsic
45 #else
46 #define INTRINSIC(intrinsic)
47 #endif
48
49 static const HashTableValue JSSVGPathSegLinetoVerticalRelTableValues[] =
50 {
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) }
54 };
55
56 #undef THUNK_GENERATOR
57 static const HashTable JSSVGPathSegLinetoVerticalRelTable = { 4, 3, JSSVGPathSegLinetoVerticalRelTableValues, 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 #if ENABLE(DFG_JIT)
65 #define INTRINSIC(intrinsic) , intrinsic
66 #else
67 #define INTRINSIC(intrinsic)
68 #endif
69
70 static const HashTableValue JSSVGPathSegLinetoVerticalRelConstructorTableValues[] =
71 {
72     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
73 };
74
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) };
78
79 JSSVGPathSegLinetoVerticalRelConstructor::JSSVGPathSegLinetoVerticalRelConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
80     : DOMConstructorObject(structure, globalObject)
81 {
82 }
83
84 void JSSVGPathSegLinetoVerticalRelConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
85 {
86     Base::finishCreation(exec->globalData());
87     ASSERT(inherits(&s_info));
88     putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGPathSegLinetoVerticalRelPrototype::self(exec, globalObject), DontDelete | ReadOnly);
89 }
90
91 bool JSSVGPathSegLinetoVerticalRelConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
92 {
93     return getStaticValueSlot<JSSVGPathSegLinetoVerticalRelConstructor, JSDOMWrapper>(exec, &JSSVGPathSegLinetoVerticalRelConstructorTable, static_cast<JSSVGPathSegLinetoVerticalRelConstructor*>(cell), propertyName, slot);
94 }
95
96 bool JSSVGPathSegLinetoVerticalRelConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
97 {
98     return getStaticValueDescriptor<JSSVGPathSegLinetoVerticalRelConstructor, JSDOMWrapper>(exec, &JSSVGPathSegLinetoVerticalRelConstructorTable, static_cast<JSSVGPathSegLinetoVerticalRelConstructor*>(object), 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 #if ENABLE(DFG_JIT)
108 #define INTRINSIC(intrinsic) , intrinsic
109 #else
110 #define INTRINSIC(intrinsic)
111 #endif
112
113 static const HashTableValue JSSVGPathSegLinetoVerticalRelPrototypeTableValues[] =
114 {
115     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
116 };
117
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) };
121
122 JSObject* JSSVGPathSegLinetoVerticalRelPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
123 {
124     return getDOMPrototype<JSSVGPathSegLinetoVerticalRel>(exec, globalObject);
125 }
126
127 const ClassInfo JSSVGPathSegLinetoVerticalRel::s_info = { "SVGPathSegLinetoVerticalRel", &JSSVGPathSeg::s_info, &JSSVGPathSegLinetoVerticalRelTable, 0 , CREATE_METHOD_TABLE(JSSVGPathSegLinetoVerticalRel) };
128
129 JSSVGPathSegLinetoVerticalRel::JSSVGPathSegLinetoVerticalRel(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPathSegLinetoVerticalRel> impl)
130     : JSSVGPathSeg(structure, globalObject, impl)
131 {
132 }
133
134 void JSSVGPathSegLinetoVerticalRel::finishCreation(JSGlobalData& globalData)
135 {
136     Base::finishCreation(globalData);
137     ASSERT(inherits(&s_info));
138 }
139
140 JSObject* JSSVGPathSegLinetoVerticalRel::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
141 {
142     return JSSVGPathSegLinetoVerticalRelPrototype::create(exec->globalData(), globalObject, JSSVGPathSegLinetoVerticalRelPrototype::createStructure(exec->globalData(), globalObject, JSSVGPathSegPrototype::self(exec, globalObject)));
143 }
144
145 bool JSSVGPathSegLinetoVerticalRel::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
146 {
147     JSSVGPathSegLinetoVerticalRel* thisObject = jsCast<JSSVGPathSegLinetoVerticalRel*>(cell);
148     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
149     return getStaticValueSlot<JSSVGPathSegLinetoVerticalRel, Base>(exec, &JSSVGPathSegLinetoVerticalRelTable, thisObject, propertyName, slot);
150 }
151
152 bool JSSVGPathSegLinetoVerticalRel::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
153 {
154     JSSVGPathSegLinetoVerticalRel* thisObject = jsCast<JSSVGPathSegLinetoVerticalRel*>(object);
155     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
156     return getStaticValueDescriptor<JSSVGPathSegLinetoVerticalRel, Base>(exec, &JSSVGPathSegLinetoVerticalRelTable, thisObject, propertyName, descriptor);
157 }
158
159 JSValue jsSVGPathSegLinetoVerticalRelY(ExecState* exec, JSValue slotBase, const Identifier&)
160 {
161     JSSVGPathSegLinetoVerticalRel* castedThis = static_cast<JSSVGPathSegLinetoVerticalRel*>(asObject(slotBase));
162     UNUSED_PARAM(exec);
163     SVGPathSegLinetoVerticalRel* imp = static_cast<SVGPathSegLinetoVerticalRel*>(castedThis->impl());
164     JSValue result = jsNumber(imp->y());
165     return result;
166 }
167
168
169 JSValue jsSVGPathSegLinetoVerticalRelConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
170 {
171     JSSVGPathSegLinetoVerticalRel* domObject = static_cast<JSSVGPathSegLinetoVerticalRel*>(asObject(slotBase));
172     return JSSVGPathSegLinetoVerticalRel::getConstructor(exec, domObject->globalObject());
173 }
174
175 void JSSVGPathSegLinetoVerticalRel::put(JSCell* cell, ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
176 {
177     JSSVGPathSegLinetoVerticalRel* thisObject = jsCast<JSSVGPathSegLinetoVerticalRel*>(cell);
178     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
179     lookupPut<JSSVGPathSegLinetoVerticalRel, Base>(exec, propertyName, value, &JSSVGPathSegLinetoVerticalRelTable, thisObject, slot);
180 }
181
182 void setJSSVGPathSegLinetoVerticalRelY(ExecState* exec, JSObject* thisObject, JSValue value)
183 {
184     JSSVGPathSegLinetoVerticalRel* castedThis = static_cast<JSSVGPathSegLinetoVerticalRel*>(thisObject);
185     SVGPathSegLinetoVerticalRel* imp = static_cast<SVGPathSegLinetoVerticalRel*>(castedThis->impl());
186     imp->setY(value.toFloat(exec));
187 }
188
189
190 JSValue JSSVGPathSegLinetoVerticalRel::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
191 {
192     return getDOMConstructor<JSSVGPathSegLinetoVerticalRelConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
193 }
194
195
196 }
197
198 #endif // ENABLE(SVG)