71
static const HashTable JSHTMLTableSectionElementConstructorTable =
67
static JSC_CONST_HASHTABLE HashTable JSHTMLTableSectionElementConstructorTable =
72
68
#if ENABLE(PERFECT_HASH_SIZE)
73
69
{ 0, JSHTMLTableSectionElementConstructorTableValues, 0 };
75
71
{ 1, 0, JSHTMLTableSectionElementConstructorTableValues, 0 };
78
class JSHTMLTableSectionElementConstructor : public DOMObject {
74
class JSHTMLTableSectionElementConstructor : public DOMConstructorObject {
80
JSHTMLTableSectionElementConstructor(ExecState* exec)
81
: DOMObject(JSHTMLTableSectionElementConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype()))
76
JSHTMLTableSectionElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
77
: DOMConstructorObject(JSHTMLTableSectionElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
83
putDirect(exec->propertyNames().prototype, JSHTMLTableSectionElementPrototype::self(exec, exec->lexicalGlobalObject()), None);
79
putDirect(exec->propertyNames().prototype, JSHTMLTableSectionElementPrototype::self(exec, globalObject), None);
85
81
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
82
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
86
83
virtual const ClassInfo* classInfo() const { return &s_info; }
87
84
static const ClassInfo s_info;
89
static PassRefPtr<Structure> createStructure(JSValuePtr proto)
86
static PassRefPtr<Structure> createStructure(JSValue proto)
91
88
return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance));
144
151
return getStaticValueSlot<JSHTMLTableSectionElement, Base>(exec, &JSHTMLTableSectionElementTable, this, propertyName, slot);
147
JSValuePtr jsHTMLTableSectionElementAlign(ExecState* exec, const Identifier&, const PropertySlot& slot)
149
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()))->impl());
154
bool JSHTMLTableSectionElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
156
return getStaticValueDescriptor<JSHTMLTableSectionElement, Base>(exec, &JSHTMLTableSectionElementTable, this, propertyName, descriptor);
159
JSValue jsHTMLTableSectionElementAlign(ExecState* exec, const Identifier&, const PropertySlot& slot)
161
JSHTMLTableSectionElement* castedThis = static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()));
163
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(castedThis->impl());
150
164
return jsString(exec, imp->align());
153
JSValuePtr jsHTMLTableSectionElementCh(ExecState* exec, const Identifier&, const PropertySlot& slot)
167
JSValue jsHTMLTableSectionElementCh(ExecState* exec, const Identifier&, const PropertySlot& slot)
155
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()))->impl());
169
JSHTMLTableSectionElement* castedThis = static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()));
171
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(castedThis->impl());
156
172
return jsString(exec, imp->ch());
159
JSValuePtr jsHTMLTableSectionElementChOff(ExecState* exec, const Identifier&, const PropertySlot& slot)
175
JSValue jsHTMLTableSectionElementChOff(ExecState* exec, const Identifier&, const PropertySlot& slot)
161
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()))->impl());
177
JSHTMLTableSectionElement* castedThis = static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()));
179
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(castedThis->impl());
162
180
return jsString(exec, imp->chOff());
165
JSValuePtr jsHTMLTableSectionElementVAlign(ExecState* exec, const Identifier&, const PropertySlot& slot)
183
JSValue jsHTMLTableSectionElementVAlign(ExecState* exec, const Identifier&, const PropertySlot& slot)
167
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()))->impl());
185
JSHTMLTableSectionElement* castedThis = static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()));
187
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(castedThis->impl());
168
188
return jsString(exec, imp->vAlign());
171
JSValuePtr jsHTMLTableSectionElementRows(ExecState* exec, const Identifier&, const PropertySlot& slot)
191
JSValue jsHTMLTableSectionElementRows(ExecState* exec, const Identifier&, const PropertySlot& slot)
173
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()))->impl());
174
return toJS(exec, WTF::getPtr(imp->rows()));
193
JSHTMLTableSectionElement* castedThis = static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()));
195
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(castedThis->impl());
196
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->rows()));
177
JSValuePtr jsHTMLTableSectionElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
199
JSValue jsHTMLTableSectionElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
179
return static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()))->getConstructor(exec);
201
JSHTMLTableSectionElement* domObject = static_cast<JSHTMLTableSectionElement*>(asObject(slot.slotBase()));
202
return JSHTMLTableSectionElement::getConstructor(exec, domObject->globalObject());
181
void JSHTMLTableSectionElement::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
204
void JSHTMLTableSectionElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
183
206
lookupPut<JSHTMLTableSectionElement, Base>(exec, propertyName, value, &JSHTMLTableSectionElementTable, this, slot);
186
void setJSHTMLTableSectionElementAlign(ExecState* exec, JSObject* thisObject, JSValuePtr value)
209
void setJSHTMLTableSectionElementAlign(ExecState* exec, JSObject* thisObject, JSValue value)
188
211
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(thisObject)->impl());
189
212
imp->setAlign(valueToStringWithNullCheck(exec, value));
192
void setJSHTMLTableSectionElementCh(ExecState* exec, JSObject* thisObject, JSValuePtr value)
215
void setJSHTMLTableSectionElementCh(ExecState* exec, JSObject* thisObject, JSValue value)
194
217
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(thisObject)->impl());
195
218
imp->setCh(valueToStringWithNullCheck(exec, value));
198
void setJSHTMLTableSectionElementChOff(ExecState* exec, JSObject* thisObject, JSValuePtr value)
221
void setJSHTMLTableSectionElementChOff(ExecState* exec, JSObject* thisObject, JSValue value)
200
223
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(thisObject)->impl());
201
224
imp->setChOff(valueToStringWithNullCheck(exec, value));
204
void setJSHTMLTableSectionElementVAlign(ExecState* exec, JSObject* thisObject, JSValuePtr value)
227
void setJSHTMLTableSectionElementVAlign(ExecState* exec, JSObject* thisObject, JSValue value)
206
229
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(static_cast<JSHTMLTableSectionElement*>(thisObject)->impl());
207
230
imp->setVAlign(valueToStringWithNullCheck(exec, value));
210
JSValuePtr JSHTMLTableSectionElement::getConstructor(ExecState* exec)
233
JSValue JSHTMLTableSectionElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
212
return getDOMConstructor<JSHTMLTableSectionElementConstructor>(exec);
235
return getDOMConstructor<JSHTMLTableSectionElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
215
JSValuePtr jsHTMLTableSectionElementPrototypeFunctionInsertRow(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
238
JSValue JSC_HOST_CALL jsHTMLTableSectionElementPrototypeFunctionInsertRow(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
217
if (!thisValue->isObject(&JSHTMLTableSectionElement::s_info))
241
if (!thisValue.inherits(&JSHTMLTableSectionElement::s_info))
218
242
return throwError(exec, TypeError);
219
243
JSHTMLTableSectionElement* castedThisObj = static_cast<JSHTMLTableSectionElement*>(asObject(thisValue));
220
244
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(castedThisObj->impl());
221
245
ExceptionCode ec = 0;
222
int index = args.at(exec, 0)->toInt32(exec);
225
JSC::JSValuePtr result = toJS(exec, WTF::getPtr(imp->insertRow(index, ec)));
246
int index = args.at(0).toInt32(exec);
249
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->insertRow(index, ec)));
226
250
setDOMException(exec, ec);
230
JSValuePtr jsHTMLTableSectionElementPrototypeFunctionDeleteRow(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
254
JSValue JSC_HOST_CALL jsHTMLTableSectionElementPrototypeFunctionDeleteRow(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
232
if (!thisValue->isObject(&JSHTMLTableSectionElement::s_info))
257
if (!thisValue.inherits(&JSHTMLTableSectionElement::s_info))
233
258
return throwError(exec, TypeError);
234
259
JSHTMLTableSectionElement* castedThisObj = static_cast<JSHTMLTableSectionElement*>(asObject(thisValue));
235
260
HTMLTableSectionElement* imp = static_cast<HTMLTableSectionElement*>(castedThisObj->impl());
236
261
ExceptionCode ec = 0;
237
int index = args.at(exec, 0)->toInt32(exec);
262
int index = args.at(0).toInt32(exec);
239
264
imp->deleteRow(index, ec);
240
265
setDOMException(exec, ec);
241
266
return jsUndefined();
244
HTMLTableSectionElement* toHTMLTableSectionElement(JSC::JSValuePtr value)
269
HTMLTableSectionElement* toHTMLTableSectionElement(JSC::JSValue value)
246
return value->isObject(&JSHTMLTableSectionElement::s_info) ? static_cast<JSHTMLTableSectionElement*>(asObject(value))->impl() : 0;
271
return value.inherits(&JSHTMLTableSectionElement::s_info) ? static_cast<JSHTMLTableSectionElement*>(asObject(value))->impl() : 0;