tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSSVGAltGlyphDefElement.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) && ENABLE(SVG_FONTS)
24
25 #include "JSSVGAltGlyphDefElement.h"
26
27 #include "SVGAltGlyphDefElement.h"
28 #include <wtf/GetPtr.h>
29
30 using namespace JSC;
31
32 namespace WebCore {
33
34 ASSERT_CLASS_FITS_IN_CELL(JSSVGAltGlyphDefElement);
35
36 /* Hash table */
37 #if ENABLE(JIT)
38 #define THUNK_GENERATOR(generator) , generator
39 #else
40 #define THUNK_GENERATOR(generator)
41 #endif
42 #if ENABLE(DFG_JIT)
43 #define INTRINSIC(intrinsic) , intrinsic
44 #else
45 #define INTRINSIC(intrinsic)
46 #endif
47
48 static const HashTableValue JSSVGAltGlyphDefElementTableValues[] =
49 {
50     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAltGlyphDefElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
51     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
52 };
53
54 #undef THUNK_GENERATOR
55 static const HashTable JSSVGAltGlyphDefElementTable = { 2, 1, JSSVGAltGlyphDefElementTableValues, 0 };
56 /* Hash table for constructor */
57 #if ENABLE(JIT)
58 #define THUNK_GENERATOR(generator) , generator
59 #else
60 #define THUNK_GENERATOR(generator)
61 #endif
62 #if ENABLE(DFG_JIT)
63 #define INTRINSIC(intrinsic) , intrinsic
64 #else
65 #define INTRINSIC(intrinsic)
66 #endif
67
68 static const HashTableValue JSSVGAltGlyphDefElementConstructorTableValues[] =
69 {
70     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
71 };
72
73 #undef THUNK_GENERATOR
74 static const HashTable JSSVGAltGlyphDefElementConstructorTable = { 1, 0, JSSVGAltGlyphDefElementConstructorTableValues, 0 };
75 const ClassInfo JSSVGAltGlyphDefElementConstructor::s_info = { "SVGAltGlyphDefElementConstructor", &DOMConstructorObject::s_info, &JSSVGAltGlyphDefElementConstructorTable, 0, CREATE_METHOD_TABLE(JSSVGAltGlyphDefElementConstructor) };
76
77 JSSVGAltGlyphDefElementConstructor::JSSVGAltGlyphDefElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
78     : DOMConstructorObject(structure, globalObject)
79 {
80 }
81
82 void JSSVGAltGlyphDefElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
83 {
84     Base::finishCreation(exec->globalData());
85     ASSERT(inherits(&s_info));
86     putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGAltGlyphDefElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
87 }
88
89 bool JSSVGAltGlyphDefElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
90 {
91     return getStaticValueSlot<JSSVGAltGlyphDefElementConstructor, JSDOMWrapper>(exec, &JSSVGAltGlyphDefElementConstructorTable, static_cast<JSSVGAltGlyphDefElementConstructor*>(cell), propertyName, slot);
92 }
93
94 bool JSSVGAltGlyphDefElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
95 {
96     return getStaticValueDescriptor<JSSVGAltGlyphDefElementConstructor, JSDOMWrapper>(exec, &JSSVGAltGlyphDefElementConstructorTable, static_cast<JSSVGAltGlyphDefElementConstructor*>(object), propertyName, descriptor);
97 }
98
99 /* Hash table for prototype */
100 #if ENABLE(JIT)
101 #define THUNK_GENERATOR(generator) , generator
102 #else
103 #define THUNK_GENERATOR(generator)
104 #endif
105 #if ENABLE(DFG_JIT)
106 #define INTRINSIC(intrinsic) , intrinsic
107 #else
108 #define INTRINSIC(intrinsic)
109 #endif
110
111 static const HashTableValue JSSVGAltGlyphDefElementPrototypeTableValues[] =
112 {
113     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
114 };
115
116 #undef THUNK_GENERATOR
117 static const HashTable JSSVGAltGlyphDefElementPrototypeTable = { 1, 0, JSSVGAltGlyphDefElementPrototypeTableValues, 0 };
118 const ClassInfo JSSVGAltGlyphDefElementPrototype::s_info = { "SVGAltGlyphDefElementPrototype", &JSC::JSNonFinalObject::s_info, &JSSVGAltGlyphDefElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSSVGAltGlyphDefElementPrototype) };
119
120 JSObject* JSSVGAltGlyphDefElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
121 {
122     return getDOMPrototype<JSSVGAltGlyphDefElement>(exec, globalObject);
123 }
124
125 const ClassInfo JSSVGAltGlyphDefElement::s_info = { "SVGAltGlyphDefElement", &JSSVGElement::s_info, &JSSVGAltGlyphDefElementTable, 0 , CREATE_METHOD_TABLE(JSSVGAltGlyphDefElement) };
126
127 JSSVGAltGlyphDefElement::JSSVGAltGlyphDefElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGAltGlyphDefElement> impl)
128     : JSSVGElement(structure, globalObject, impl)
129 {
130 }
131
132 void JSSVGAltGlyphDefElement::finishCreation(JSGlobalData& globalData)
133 {
134     Base::finishCreation(globalData);
135     ASSERT(inherits(&s_info));
136 }
137
138 JSObject* JSSVGAltGlyphDefElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
139 {
140     return JSSVGAltGlyphDefElementPrototype::create(exec->globalData(), globalObject, JSSVGAltGlyphDefElementPrototype::createStructure(exec->globalData(), globalObject, JSSVGElementPrototype::self(exec, globalObject)));
141 }
142
143 bool JSSVGAltGlyphDefElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
144 {
145     JSSVGAltGlyphDefElement* thisObject = jsCast<JSSVGAltGlyphDefElement*>(cell);
146     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
147     return getStaticValueSlot<JSSVGAltGlyphDefElement, Base>(exec, &JSSVGAltGlyphDefElementTable, thisObject, propertyName, slot);
148 }
149
150 bool JSSVGAltGlyphDefElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
151 {
152     JSSVGAltGlyphDefElement* thisObject = jsCast<JSSVGAltGlyphDefElement*>(object);
153     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
154     return getStaticValueDescriptor<JSSVGAltGlyphDefElement, Base>(exec, &JSSVGAltGlyphDefElementTable, thisObject, propertyName, descriptor);
155 }
156
157 JSValue jsSVGAltGlyphDefElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
158 {
159     JSSVGAltGlyphDefElement* domObject = static_cast<JSSVGAltGlyphDefElement*>(asObject(slotBase));
160     return JSSVGAltGlyphDefElement::getConstructor(exec, domObject->globalObject());
161 }
162
163 JSValue JSSVGAltGlyphDefElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
164 {
165     return getDOMConstructor<JSSVGAltGlyphDefElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
166 }
167
168
169 }
170
171 #endif // ENABLE(SVG) && ENABLE(SVG_FONTS)