|
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 "JSHTMLTableCellElement.h" |
|
23 |
|
24 #include "HTMLNames.h" |
|
25 #include "HTMLTableCellElement.h" |
|
26 #include "KURL.h" |
|
27 #include <runtime/JSNumberCell.h> |
|
28 #include <runtime/JSString.h> |
|
29 #include <wtf/GetPtr.h> |
|
30 |
|
31 using namespace JSC; |
|
32 |
|
33 namespace WebCore { |
|
34 |
|
35 ASSERT_CLASS_FITS_IN_CELL(JSHTMLTableCellElement); |
|
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 JSHTMLTableCellElementTableValues[17] = |
|
45 { |
|
46 { "cellIndex", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementCellIndex), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
47 { "abbr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementAbbr), (intptr_t)setJSHTMLTableCellElementAbbr THUNK_GENERATOR(0) }, |
|
48 { "align", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementAlign), (intptr_t)setJSHTMLTableCellElementAlign THUNK_GENERATOR(0) }, |
|
49 { "axis", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementAxis), (intptr_t)setJSHTMLTableCellElementAxis THUNK_GENERATOR(0) }, |
|
50 { "bgColor", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementBgColor), (intptr_t)setJSHTMLTableCellElementBgColor THUNK_GENERATOR(0) }, |
|
51 { "ch", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementCh), (intptr_t)setJSHTMLTableCellElementCh THUNK_GENERATOR(0) }, |
|
52 { "chOff", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementChOff), (intptr_t)setJSHTMLTableCellElementChOff THUNK_GENERATOR(0) }, |
|
53 { "colSpan", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementColSpan), (intptr_t)setJSHTMLTableCellElementColSpan THUNK_GENERATOR(0) }, |
|
54 { "headers", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementHeaders), (intptr_t)setJSHTMLTableCellElementHeaders THUNK_GENERATOR(0) }, |
|
55 { "height", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementHeight), (intptr_t)setJSHTMLTableCellElementHeight THUNK_GENERATOR(0) }, |
|
56 { "noWrap", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementNoWrap), (intptr_t)setJSHTMLTableCellElementNoWrap THUNK_GENERATOR(0) }, |
|
57 { "rowSpan", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementRowSpan), (intptr_t)setJSHTMLTableCellElementRowSpan THUNK_GENERATOR(0) }, |
|
58 { "scope", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementScope), (intptr_t)setJSHTMLTableCellElementScope THUNK_GENERATOR(0) }, |
|
59 { "vAlign", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementVAlign), (intptr_t)setJSHTMLTableCellElementVAlign THUNK_GENERATOR(0) }, |
|
60 { "width", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementWidth), (intptr_t)setJSHTMLTableCellElementWidth THUNK_GENERATOR(0) }, |
|
61 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTableCellElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
62 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
63 }; |
|
64 |
|
65 #undef THUNK_GENERATOR |
|
66 static JSC_CONST_HASHTABLE HashTable JSHTMLTableCellElementTable = { 36, 31, JSHTMLTableCellElementTableValues, 0 }; |
|
67 /* Hash table for constructor */ |
|
68 #if ENABLE(JIT) |
|
69 #define THUNK_GENERATOR(generator) , generator |
|
70 #else |
|
71 #define THUNK_GENERATOR(generator) |
|
72 #endif |
|
73 |
|
74 static const HashTableValue JSHTMLTableCellElementConstructorTableValues[1] = |
|
75 { |
|
76 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
77 }; |
|
78 |
|
79 #undef THUNK_GENERATOR |
|
80 static JSC_CONST_HASHTABLE HashTable JSHTMLTableCellElementConstructorTable = { 1, 0, JSHTMLTableCellElementConstructorTableValues, 0 }; |
|
81 class JSHTMLTableCellElementConstructor : public DOMConstructorObject { |
|
82 public: |
|
83 JSHTMLTableCellElementConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
84 |
|
85 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
86 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
87 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
88 static const JSC::ClassInfo s_info; |
|
89 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
90 { |
|
91 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
92 } |
|
93 protected: |
|
94 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
95 }; |
|
96 |
|
97 const ClassInfo JSHTMLTableCellElementConstructor::s_info = { "HTMLTableCellElementConstructor", 0, &JSHTMLTableCellElementConstructorTable, 0 }; |
|
98 |
|
99 JSHTMLTableCellElementConstructor::JSHTMLTableCellElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) |
|
100 : DOMConstructorObject(JSHTMLTableCellElementConstructor::createStructure(globalObject->objectPrototype()), globalObject) |
|
101 { |
|
102 putDirect(exec->propertyNames().prototype, JSHTMLTableCellElementPrototype::self(exec, globalObject), DontDelete | ReadOnly); |
|
103 } |
|
104 |
|
105 bool JSHTMLTableCellElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
106 { |
|
107 return getStaticValueSlot<JSHTMLTableCellElementConstructor, DOMObject>(exec, &JSHTMLTableCellElementConstructorTable, this, propertyName, slot); |
|
108 } |
|
109 |
|
110 bool JSHTMLTableCellElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
111 { |
|
112 return getStaticValueDescriptor<JSHTMLTableCellElementConstructor, DOMObject>(exec, &JSHTMLTableCellElementConstructorTable, this, propertyName, descriptor); |
|
113 } |
|
114 |
|
115 /* Hash table for prototype */ |
|
116 #if ENABLE(JIT) |
|
117 #define THUNK_GENERATOR(generator) , generator |
|
118 #else |
|
119 #define THUNK_GENERATOR(generator) |
|
120 #endif |
|
121 |
|
122 static const HashTableValue JSHTMLTableCellElementPrototypeTableValues[1] = |
|
123 { |
|
124 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
125 }; |
|
126 |
|
127 #undef THUNK_GENERATOR |
|
128 static JSC_CONST_HASHTABLE HashTable JSHTMLTableCellElementPrototypeTable = { 1, 0, JSHTMLTableCellElementPrototypeTableValues, 0 }; |
|
129 const ClassInfo JSHTMLTableCellElementPrototype::s_info = { "HTMLTableCellElementPrototype", 0, &JSHTMLTableCellElementPrototypeTable, 0 }; |
|
130 |
|
131 JSObject* JSHTMLTableCellElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject) |
|
132 { |
|
133 return getDOMPrototype<JSHTMLTableCellElement>(exec, globalObject); |
|
134 } |
|
135 |
|
136 const ClassInfo JSHTMLTableCellElement::s_info = { "HTMLTableCellElement", &JSHTMLElement::s_info, &JSHTMLTableCellElementTable, 0 }; |
|
137 |
|
138 JSHTMLTableCellElement::JSHTMLTableCellElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLTableCellElement> impl) |
|
139 : JSHTMLElement(structure, globalObject, impl) |
|
140 { |
|
141 } |
|
142 |
|
143 JSObject* JSHTMLTableCellElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject) |
|
144 { |
|
145 return new (exec) JSHTMLTableCellElementPrototype(globalObject, JSHTMLTableCellElementPrototype::createStructure(JSHTMLElementPrototype::self(exec, globalObject))); |
|
146 } |
|
147 |
|
148 bool JSHTMLTableCellElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
149 { |
|
150 return getStaticValueSlot<JSHTMLTableCellElement, Base>(exec, &JSHTMLTableCellElementTable, this, propertyName, slot); |
|
151 } |
|
152 |
|
153 bool JSHTMLTableCellElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
154 { |
|
155 return getStaticValueDescriptor<JSHTMLTableCellElement, Base>(exec, &JSHTMLTableCellElementTable, this, propertyName, descriptor); |
|
156 } |
|
157 |
|
158 JSValue jsHTMLTableCellElementCellIndex(ExecState* exec, JSValue slotBase, const Identifier&) |
|
159 { |
|
160 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
161 UNUSED_PARAM(exec); |
|
162 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
163 JSValue result = jsNumber(exec, imp->cellIndex()); |
|
164 return result; |
|
165 } |
|
166 |
|
167 JSValue jsHTMLTableCellElementAbbr(ExecState* exec, JSValue slotBase, const Identifier&) |
|
168 { |
|
169 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
170 UNUSED_PARAM(exec); |
|
171 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
172 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::abbrAttr)); |
|
173 return result; |
|
174 } |
|
175 |
|
176 JSValue jsHTMLTableCellElementAlign(ExecState* exec, JSValue slotBase, const Identifier&) |
|
177 { |
|
178 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
179 UNUSED_PARAM(exec); |
|
180 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
181 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::alignAttr)); |
|
182 return result; |
|
183 } |
|
184 |
|
185 JSValue jsHTMLTableCellElementAxis(ExecState* exec, JSValue slotBase, const Identifier&) |
|
186 { |
|
187 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
188 UNUSED_PARAM(exec); |
|
189 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
190 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::axisAttr)); |
|
191 return result; |
|
192 } |
|
193 |
|
194 JSValue jsHTMLTableCellElementBgColor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
195 { |
|
196 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
197 UNUSED_PARAM(exec); |
|
198 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
199 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::bgcolorAttr)); |
|
200 return result; |
|
201 } |
|
202 |
|
203 JSValue jsHTMLTableCellElementCh(ExecState* exec, JSValue slotBase, const Identifier&) |
|
204 { |
|
205 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
206 UNUSED_PARAM(exec); |
|
207 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
208 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::charAttr)); |
|
209 return result; |
|
210 } |
|
211 |
|
212 JSValue jsHTMLTableCellElementChOff(ExecState* exec, JSValue slotBase, const Identifier&) |
|
213 { |
|
214 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
215 UNUSED_PARAM(exec); |
|
216 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
217 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::charoffAttr)); |
|
218 return result; |
|
219 } |
|
220 |
|
221 JSValue jsHTMLTableCellElementColSpan(ExecState* exec, JSValue slotBase, const Identifier&) |
|
222 { |
|
223 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
224 UNUSED_PARAM(exec); |
|
225 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
226 JSValue result = jsNumber(exec, imp->colSpan()); |
|
227 return result; |
|
228 } |
|
229 |
|
230 JSValue jsHTMLTableCellElementHeaders(ExecState* exec, JSValue slotBase, const Identifier&) |
|
231 { |
|
232 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
233 UNUSED_PARAM(exec); |
|
234 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
235 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::headersAttr)); |
|
236 return result; |
|
237 } |
|
238 |
|
239 JSValue jsHTMLTableCellElementHeight(ExecState* exec, JSValue slotBase, const Identifier&) |
|
240 { |
|
241 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
242 UNUSED_PARAM(exec); |
|
243 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
244 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::heightAttr)); |
|
245 return result; |
|
246 } |
|
247 |
|
248 JSValue jsHTMLTableCellElementNoWrap(ExecState* exec, JSValue slotBase, const Identifier&) |
|
249 { |
|
250 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
251 UNUSED_PARAM(exec); |
|
252 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
253 JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::nowrapAttr)); |
|
254 return result; |
|
255 } |
|
256 |
|
257 JSValue jsHTMLTableCellElementRowSpan(ExecState* exec, JSValue slotBase, const Identifier&) |
|
258 { |
|
259 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
260 UNUSED_PARAM(exec); |
|
261 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
262 JSValue result = jsNumber(exec, imp->rowSpan()); |
|
263 return result; |
|
264 } |
|
265 |
|
266 JSValue jsHTMLTableCellElementScope(ExecState* exec, JSValue slotBase, const Identifier&) |
|
267 { |
|
268 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
269 UNUSED_PARAM(exec); |
|
270 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
271 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::scopeAttr)); |
|
272 return result; |
|
273 } |
|
274 |
|
275 JSValue jsHTMLTableCellElementVAlign(ExecState* exec, JSValue slotBase, const Identifier&) |
|
276 { |
|
277 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
278 UNUSED_PARAM(exec); |
|
279 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
280 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::valignAttr)); |
|
281 return result; |
|
282 } |
|
283 |
|
284 JSValue jsHTMLTableCellElementWidth(ExecState* exec, JSValue slotBase, const Identifier&) |
|
285 { |
|
286 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
287 UNUSED_PARAM(exec); |
|
288 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
289 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::widthAttr)); |
|
290 return result; |
|
291 } |
|
292 |
|
293 JSValue jsHTMLTableCellElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
294 { |
|
295 JSHTMLTableCellElement* domObject = static_cast<JSHTMLTableCellElement*>(asObject(slotBase)); |
|
296 return JSHTMLTableCellElement::getConstructor(exec, domObject->globalObject()); |
|
297 } |
|
298 void JSHTMLTableCellElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) |
|
299 { |
|
300 lookupPut<JSHTMLTableCellElement, Base>(exec, propertyName, value, &JSHTMLTableCellElementTable, this, slot); |
|
301 } |
|
302 |
|
303 void setJSHTMLTableCellElementAbbr(ExecState* exec, JSObject* thisObject, JSValue value) |
|
304 { |
|
305 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
306 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
307 imp->setAttribute(WebCore::HTMLNames::abbrAttr, valueToStringWithNullCheck(exec, value)); |
|
308 } |
|
309 |
|
310 void setJSHTMLTableCellElementAlign(ExecState* exec, JSObject* thisObject, JSValue value) |
|
311 { |
|
312 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
313 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
314 imp->setAttribute(WebCore::HTMLNames::alignAttr, valueToStringWithNullCheck(exec, value)); |
|
315 } |
|
316 |
|
317 void setJSHTMLTableCellElementAxis(ExecState* exec, JSObject* thisObject, JSValue value) |
|
318 { |
|
319 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
320 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
321 imp->setAttribute(WebCore::HTMLNames::axisAttr, valueToStringWithNullCheck(exec, value)); |
|
322 } |
|
323 |
|
324 void setJSHTMLTableCellElementBgColor(ExecState* exec, JSObject* thisObject, JSValue value) |
|
325 { |
|
326 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
327 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
328 imp->setAttribute(WebCore::HTMLNames::bgcolorAttr, valueToStringWithNullCheck(exec, value)); |
|
329 } |
|
330 |
|
331 void setJSHTMLTableCellElementCh(ExecState* exec, JSObject* thisObject, JSValue value) |
|
332 { |
|
333 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
334 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
335 imp->setAttribute(WebCore::HTMLNames::charAttr, valueToStringWithNullCheck(exec, value)); |
|
336 } |
|
337 |
|
338 void setJSHTMLTableCellElementChOff(ExecState* exec, JSObject* thisObject, JSValue value) |
|
339 { |
|
340 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
341 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
342 imp->setAttribute(WebCore::HTMLNames::charoffAttr, valueToStringWithNullCheck(exec, value)); |
|
343 } |
|
344 |
|
345 void setJSHTMLTableCellElementColSpan(ExecState* exec, JSObject* thisObject, JSValue value) |
|
346 { |
|
347 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
348 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
349 imp->setColSpan(value.toInt32(exec)); |
|
350 } |
|
351 |
|
352 void setJSHTMLTableCellElementHeaders(ExecState* exec, JSObject* thisObject, JSValue value) |
|
353 { |
|
354 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
355 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
356 imp->setAttribute(WebCore::HTMLNames::headersAttr, valueToStringWithNullCheck(exec, value)); |
|
357 } |
|
358 |
|
359 void setJSHTMLTableCellElementHeight(ExecState* exec, JSObject* thisObject, JSValue value) |
|
360 { |
|
361 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
362 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
363 imp->setAttribute(WebCore::HTMLNames::heightAttr, valueToStringWithNullCheck(exec, value)); |
|
364 } |
|
365 |
|
366 void setJSHTMLTableCellElementNoWrap(ExecState* exec, JSObject* thisObject, JSValue value) |
|
367 { |
|
368 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
369 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
370 imp->setBooleanAttribute(WebCore::HTMLNames::nowrapAttr, value.toBoolean(exec)); |
|
371 } |
|
372 |
|
373 void setJSHTMLTableCellElementRowSpan(ExecState* exec, JSObject* thisObject, JSValue value) |
|
374 { |
|
375 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
376 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
377 imp->setRowSpan(value.toInt32(exec)); |
|
378 } |
|
379 |
|
380 void setJSHTMLTableCellElementScope(ExecState* exec, JSObject* thisObject, JSValue value) |
|
381 { |
|
382 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
383 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
384 imp->setAttribute(WebCore::HTMLNames::scopeAttr, valueToStringWithNullCheck(exec, value)); |
|
385 } |
|
386 |
|
387 void setJSHTMLTableCellElementVAlign(ExecState* exec, JSObject* thisObject, JSValue value) |
|
388 { |
|
389 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
390 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
391 imp->setAttribute(WebCore::HTMLNames::valignAttr, valueToStringWithNullCheck(exec, value)); |
|
392 } |
|
393 |
|
394 void setJSHTMLTableCellElementWidth(ExecState* exec, JSObject* thisObject, JSValue value) |
|
395 { |
|
396 JSHTMLTableCellElement* castedThis = static_cast<JSHTMLTableCellElement*>(thisObject); |
|
397 HTMLTableCellElement* imp = static_cast<HTMLTableCellElement*>(castedThis->impl()); |
|
398 imp->setAttribute(WebCore::HTMLNames::widthAttr, valueToStringWithNullCheck(exec, value)); |
|
399 } |
|
400 |
|
401 JSValue JSHTMLTableCellElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject) |
|
402 { |
|
403 return getDOMConstructor<JSHTMLTableCellElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); |
|
404 } |
|
405 |
|
406 |
|
407 } |