|
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 #include "JSWebKitCSSTransformValue.h" |
|
23 |
|
24 #include "WebKitCSSTransformValue.h" |
|
25 #include <runtime/JSNumberCell.h> |
|
26 #include <runtime/PropertyNameArray.h> |
|
27 #include <wtf/GetPtr.h> |
|
28 |
|
29 using namespace JSC; |
|
30 |
|
31 namespace WebCore { |
|
32 |
|
33 ASSERT_CLASS_FITS_IN_CELL(JSWebKitCSSTransformValue); |
|
34 |
|
35 /* Hash table */ |
|
36 #if ENABLE(JIT) |
|
37 #define THUNK_GENERATOR(generator) , generator |
|
38 #else |
|
39 #define THUNK_GENERATOR(generator) |
|
40 #endif |
|
41 |
|
42 static const HashTableValue JSWebKitCSSTransformValueTableValues[3] = |
|
43 { |
|
44 { "operationType", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueOperationType), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
45 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
46 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
47 }; |
|
48 |
|
49 #undef THUNK_GENERATOR |
|
50 static JSC_CONST_HASHTABLE HashTable JSWebKitCSSTransformValueTable = { 5, 3, JSWebKitCSSTransformValueTableValues, 0 }; |
|
51 /* Hash table for constructor */ |
|
52 #if ENABLE(JIT) |
|
53 #define THUNK_GENERATOR(generator) , generator |
|
54 #else |
|
55 #define THUNK_GENERATOR(generator) |
|
56 #endif |
|
57 |
|
58 static const HashTableValue JSWebKitCSSTransformValueConstructorTableValues[22] = |
|
59 { |
|
60 { "CSS_TRANSLATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
61 { "CSS_TRANSLATEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATEX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
62 { "CSS_TRANSLATEY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATEY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
63 { "CSS_ROTATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
64 { "CSS_SCALE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
65 { "CSS_SCALEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALEX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
66 { "CSS_SCALEY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALEY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
67 { "CSS_SKEW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SKEW), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
68 { "CSS_SKEWX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SKEWX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
69 { "CSS_SKEWY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SKEWY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
70 { "CSS_MATRIX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_MATRIX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
71 { "CSS_TRANSLATEZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATEZ), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
72 { "CSS_TRANSLATE3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATE3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
73 { "CSS_ROTATEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATEX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
74 { "CSS_ROTATEY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATEY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
75 { "CSS_ROTATEZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATEZ), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
76 { "CSS_ROTATE3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATE3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
77 { "CSS_SCALEZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALEZ), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
78 { "CSS_SCALE3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALE3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
79 { "CSS_PERSPECTIVE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_PERSPECTIVE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
80 { "CSS_MATRIX3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_MATRIX3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
81 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
82 }; |
|
83 |
|
84 #undef THUNK_GENERATOR |
|
85 static JSC_CONST_HASHTABLE HashTable JSWebKitCSSTransformValueConstructorTable = { 68, 63, JSWebKitCSSTransformValueConstructorTableValues, 0 }; |
|
86 class JSWebKitCSSTransformValueConstructor : public DOMConstructorObject { |
|
87 public: |
|
88 JSWebKitCSSTransformValueConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
89 |
|
90 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
91 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
92 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
93 static const JSC::ClassInfo s_info; |
|
94 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
95 { |
|
96 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
97 } |
|
98 protected: |
|
99 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
100 }; |
|
101 |
|
102 const ClassInfo JSWebKitCSSTransformValueConstructor::s_info = { "WebKitCSSTransformValueConstructor", 0, &JSWebKitCSSTransformValueConstructorTable, 0 }; |
|
103 |
|
104 JSWebKitCSSTransformValueConstructor::JSWebKitCSSTransformValueConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) |
|
105 : DOMConstructorObject(JSWebKitCSSTransformValueConstructor::createStructure(globalObject->objectPrototype()), globalObject) |
|
106 { |
|
107 putDirect(exec->propertyNames().prototype, JSWebKitCSSTransformValuePrototype::self(exec, globalObject), DontDelete | ReadOnly); |
|
108 } |
|
109 |
|
110 bool JSWebKitCSSTransformValueConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
111 { |
|
112 return getStaticValueSlot<JSWebKitCSSTransformValueConstructor, DOMObject>(exec, &JSWebKitCSSTransformValueConstructorTable, this, propertyName, slot); |
|
113 } |
|
114 |
|
115 bool JSWebKitCSSTransformValueConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
116 { |
|
117 return getStaticValueDescriptor<JSWebKitCSSTransformValueConstructor, DOMObject>(exec, &JSWebKitCSSTransformValueConstructorTable, this, propertyName, descriptor); |
|
118 } |
|
119 |
|
120 /* Hash table for prototype */ |
|
121 #if ENABLE(JIT) |
|
122 #define THUNK_GENERATOR(generator) , generator |
|
123 #else |
|
124 #define THUNK_GENERATOR(generator) |
|
125 #endif |
|
126 |
|
127 static const HashTableValue JSWebKitCSSTransformValuePrototypeTableValues[22] = |
|
128 { |
|
129 { "CSS_TRANSLATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
130 { "CSS_TRANSLATEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATEX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
131 { "CSS_TRANSLATEY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATEY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
132 { "CSS_ROTATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
133 { "CSS_SCALE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
134 { "CSS_SCALEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALEX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
135 { "CSS_SCALEY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALEY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
136 { "CSS_SKEW", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SKEW), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
137 { "CSS_SKEWX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SKEWX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
138 { "CSS_SKEWY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SKEWY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
139 { "CSS_MATRIX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_MATRIX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
140 { "CSS_TRANSLATEZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATEZ), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
141 { "CSS_TRANSLATE3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_TRANSLATE3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
142 { "CSS_ROTATEX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATEX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
143 { "CSS_ROTATEY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATEY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
144 { "CSS_ROTATEZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATEZ), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
145 { "CSS_ROTATE3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_ROTATE3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
146 { "CSS_SCALEZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALEZ), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
147 { "CSS_SCALE3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_SCALE3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
148 { "CSS_PERSPECTIVE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_PERSPECTIVE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
149 { "CSS_MATRIX3D", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsWebKitCSSTransformValueCSS_MATRIX3D), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
150 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
151 }; |
|
152 |
|
153 #undef THUNK_GENERATOR |
|
154 static JSC_CONST_HASHTABLE HashTable JSWebKitCSSTransformValuePrototypeTable = { 68, 63, JSWebKitCSSTransformValuePrototypeTableValues, 0 }; |
|
155 const ClassInfo JSWebKitCSSTransformValuePrototype::s_info = { "WebKitCSSTransformValuePrototype", 0, &JSWebKitCSSTransformValuePrototypeTable, 0 }; |
|
156 |
|
157 JSObject* JSWebKitCSSTransformValuePrototype::self(ExecState* exec, JSGlobalObject* globalObject) |
|
158 { |
|
159 return getDOMPrototype<JSWebKitCSSTransformValue>(exec, globalObject); |
|
160 } |
|
161 |
|
162 bool JSWebKitCSSTransformValuePrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
163 { |
|
164 return getStaticValueSlot<JSWebKitCSSTransformValuePrototype, JSObject>(exec, &JSWebKitCSSTransformValuePrototypeTable, this, propertyName, slot); |
|
165 } |
|
166 |
|
167 bool JSWebKitCSSTransformValuePrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
168 { |
|
169 return getStaticValueDescriptor<JSWebKitCSSTransformValuePrototype, JSObject>(exec, &JSWebKitCSSTransformValuePrototypeTable, this, propertyName, descriptor); |
|
170 } |
|
171 |
|
172 const ClassInfo JSWebKitCSSTransformValue::s_info = { "WebKitCSSTransformValue", &JSCSSValueList::s_info, &JSWebKitCSSTransformValueTable, 0 }; |
|
173 |
|
174 JSWebKitCSSTransformValue::JSWebKitCSSTransformValue(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<WebKitCSSTransformValue> impl) |
|
175 : JSCSSValueList(structure, globalObject, impl) |
|
176 { |
|
177 } |
|
178 |
|
179 JSObject* JSWebKitCSSTransformValue::createPrototype(ExecState* exec, JSGlobalObject* globalObject) |
|
180 { |
|
181 return new (exec) JSWebKitCSSTransformValuePrototype(globalObject, JSWebKitCSSTransformValuePrototype::createStructure(JSCSSValueListPrototype::self(exec, globalObject))); |
|
182 } |
|
183 |
|
184 bool JSWebKitCSSTransformValue::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
185 { |
|
186 const HashEntry* entry = JSWebKitCSSTransformValueTable.entry(exec, propertyName); |
|
187 if (entry) { |
|
188 slot.setCustom(this, entry->propertyGetter()); |
|
189 return true; |
|
190 } |
|
191 bool ok; |
|
192 unsigned index = propertyName.toUInt32(&ok, false); |
|
193 if (ok && index < static_cast<WebKitCSSTransformValue*>(impl())->length()) { |
|
194 slot.setCustomIndex(this, index, indexGetter); |
|
195 return true; |
|
196 } |
|
197 return getStaticValueSlot<JSWebKitCSSTransformValue, Base>(exec, &JSWebKitCSSTransformValueTable, this, propertyName, slot); |
|
198 } |
|
199 |
|
200 bool JSWebKitCSSTransformValue::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
201 { |
|
202 const HashEntry* entry = JSWebKitCSSTransformValueTable.entry(exec, propertyName); |
|
203 if (entry) { |
|
204 PropertySlot slot; |
|
205 slot.setCustom(this, entry->propertyGetter()); |
|
206 descriptor.setDescriptor(slot.getValue(exec, propertyName), entry->attributes()); |
|
207 return true; |
|
208 } |
|
209 bool ok; |
|
210 unsigned index = propertyName.toUInt32(&ok, false); |
|
211 if (ok && index < static_cast<WebKitCSSTransformValue*>(impl())->length()) { |
|
212 PropertySlot slot; |
|
213 slot.setCustomIndex(this, index, indexGetter); |
|
214 descriptor.setDescriptor(slot.getValue(exec, propertyName), DontDelete | ReadOnly); |
|
215 return true; |
|
216 } |
|
217 return getStaticValueDescriptor<JSWebKitCSSTransformValue, Base>(exec, &JSWebKitCSSTransformValueTable, this, propertyName, descriptor); |
|
218 } |
|
219 |
|
220 bool JSWebKitCSSTransformValue::getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot) |
|
221 { |
|
222 if (propertyName < static_cast<WebKitCSSTransformValue*>(impl())->length()) { |
|
223 slot.setCustomIndex(this, propertyName, indexGetter); |
|
224 return true; |
|
225 } |
|
226 return getOwnPropertySlot(exec, Identifier::from(exec, propertyName), slot); |
|
227 } |
|
228 |
|
229 JSValue jsWebKitCSSTransformValueOperationType(ExecState* exec, JSValue slotBase, const Identifier&) |
|
230 { |
|
231 JSWebKitCSSTransformValue* castedThis = static_cast<JSWebKitCSSTransformValue*>(asObject(slotBase)); |
|
232 UNUSED_PARAM(exec); |
|
233 WebKitCSSTransformValue* imp = static_cast<WebKitCSSTransformValue*>(castedThis->impl()); |
|
234 JSValue result = jsNumber(exec, imp->operationType()); |
|
235 return result; |
|
236 } |
|
237 |
|
238 JSValue jsWebKitCSSTransformValueConstructor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
239 { |
|
240 JSWebKitCSSTransformValue* domObject = static_cast<JSWebKitCSSTransformValue*>(asObject(slotBase)); |
|
241 return JSWebKitCSSTransformValue::getConstructor(exec, domObject->globalObject()); |
|
242 } |
|
243 void JSWebKitCSSTransformValue::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) |
|
244 { |
|
245 for (unsigned i = 0; i < static_cast<WebKitCSSTransformValue*>(impl())->length(); ++i) |
|
246 propertyNames.add(Identifier::from(exec, i)); |
|
247 Base::getOwnPropertyNames(exec, propertyNames, mode); |
|
248 } |
|
249 |
|
250 JSValue JSWebKitCSSTransformValue::getConstructor(ExecState* exec, JSGlobalObject* globalObject) |
|
251 { |
|
252 return getDOMConstructor<JSWebKitCSSTransformValueConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); |
|
253 } |
|
254 |
|
255 // Constant getters |
|
256 |
|
257 JSValue jsWebKitCSSTransformValueCSS_TRANSLATE(ExecState* exec, JSValue, const Identifier&) |
|
258 { |
|
259 return jsNumber(exec, static_cast<int>(1)); |
|
260 } |
|
261 |
|
262 JSValue jsWebKitCSSTransformValueCSS_TRANSLATEX(ExecState* exec, JSValue, const Identifier&) |
|
263 { |
|
264 return jsNumber(exec, static_cast<int>(2)); |
|
265 } |
|
266 |
|
267 JSValue jsWebKitCSSTransformValueCSS_TRANSLATEY(ExecState* exec, JSValue, const Identifier&) |
|
268 { |
|
269 return jsNumber(exec, static_cast<int>(3)); |
|
270 } |
|
271 |
|
272 JSValue jsWebKitCSSTransformValueCSS_ROTATE(ExecState* exec, JSValue, const Identifier&) |
|
273 { |
|
274 return jsNumber(exec, static_cast<int>(4)); |
|
275 } |
|
276 |
|
277 JSValue jsWebKitCSSTransformValueCSS_SCALE(ExecState* exec, JSValue, const Identifier&) |
|
278 { |
|
279 return jsNumber(exec, static_cast<int>(5)); |
|
280 } |
|
281 |
|
282 JSValue jsWebKitCSSTransformValueCSS_SCALEX(ExecState* exec, JSValue, const Identifier&) |
|
283 { |
|
284 return jsNumber(exec, static_cast<int>(6)); |
|
285 } |
|
286 |
|
287 JSValue jsWebKitCSSTransformValueCSS_SCALEY(ExecState* exec, JSValue, const Identifier&) |
|
288 { |
|
289 return jsNumber(exec, static_cast<int>(7)); |
|
290 } |
|
291 |
|
292 JSValue jsWebKitCSSTransformValueCSS_SKEW(ExecState* exec, JSValue, const Identifier&) |
|
293 { |
|
294 return jsNumber(exec, static_cast<int>(8)); |
|
295 } |
|
296 |
|
297 JSValue jsWebKitCSSTransformValueCSS_SKEWX(ExecState* exec, JSValue, const Identifier&) |
|
298 { |
|
299 return jsNumber(exec, static_cast<int>(9)); |
|
300 } |
|
301 |
|
302 JSValue jsWebKitCSSTransformValueCSS_SKEWY(ExecState* exec, JSValue, const Identifier&) |
|
303 { |
|
304 return jsNumber(exec, static_cast<int>(10)); |
|
305 } |
|
306 |
|
307 JSValue jsWebKitCSSTransformValueCSS_MATRIX(ExecState* exec, JSValue, const Identifier&) |
|
308 { |
|
309 return jsNumber(exec, static_cast<int>(11)); |
|
310 } |
|
311 |
|
312 JSValue jsWebKitCSSTransformValueCSS_TRANSLATEZ(ExecState* exec, JSValue, const Identifier&) |
|
313 { |
|
314 return jsNumber(exec, static_cast<int>(12)); |
|
315 } |
|
316 |
|
317 JSValue jsWebKitCSSTransformValueCSS_TRANSLATE3D(ExecState* exec, JSValue, const Identifier&) |
|
318 { |
|
319 return jsNumber(exec, static_cast<int>(13)); |
|
320 } |
|
321 |
|
322 JSValue jsWebKitCSSTransformValueCSS_ROTATEX(ExecState* exec, JSValue, const Identifier&) |
|
323 { |
|
324 return jsNumber(exec, static_cast<int>(14)); |
|
325 } |
|
326 |
|
327 JSValue jsWebKitCSSTransformValueCSS_ROTATEY(ExecState* exec, JSValue, const Identifier&) |
|
328 { |
|
329 return jsNumber(exec, static_cast<int>(15)); |
|
330 } |
|
331 |
|
332 JSValue jsWebKitCSSTransformValueCSS_ROTATEZ(ExecState* exec, JSValue, const Identifier&) |
|
333 { |
|
334 return jsNumber(exec, static_cast<int>(16)); |
|
335 } |
|
336 |
|
337 JSValue jsWebKitCSSTransformValueCSS_ROTATE3D(ExecState* exec, JSValue, const Identifier&) |
|
338 { |
|
339 return jsNumber(exec, static_cast<int>(17)); |
|
340 } |
|
341 |
|
342 JSValue jsWebKitCSSTransformValueCSS_SCALEZ(ExecState* exec, JSValue, const Identifier&) |
|
343 { |
|
344 return jsNumber(exec, static_cast<int>(18)); |
|
345 } |
|
346 |
|
347 JSValue jsWebKitCSSTransformValueCSS_SCALE3D(ExecState* exec, JSValue, const Identifier&) |
|
348 { |
|
349 return jsNumber(exec, static_cast<int>(19)); |
|
350 } |
|
351 |
|
352 JSValue jsWebKitCSSTransformValueCSS_PERSPECTIVE(ExecState* exec, JSValue, const Identifier&) |
|
353 { |
|
354 return jsNumber(exec, static_cast<int>(20)); |
|
355 } |
|
356 |
|
357 JSValue jsWebKitCSSTransformValueCSS_MATRIX3D(ExecState* exec, JSValue, const Identifier&) |
|
358 { |
|
359 return jsNumber(exec, static_cast<int>(21)); |
|
360 } |
|
361 |
|
362 |
|
363 JSValue JSWebKitCSSTransformValue::indexGetter(ExecState* exec, JSValue slotBase, unsigned index) |
|
364 { |
|
365 JSWebKitCSSTransformValue* thisObj = static_cast<JSWebKitCSSTransformValue*>(asObject(slotBase)); |
|
366 return toJS(exec, thisObj->globalObject(), static_cast<WebKitCSSTransformValue*>(thisObj->impl())->item(index)); |
|
367 } |
|
368 |
|
369 } |