JSValue jsHTMLOListElementCompact(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLOListElement* castedThis = static_cast<JSHTMLOListElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLOListElement* imp = static_cast<HTMLOListElement*>(castedThis->impl()); JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::compactAttr)); return result; }
EncodedJSValue jsHTMLOListElementConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName) { JSHTMLOListElement* domObject = jsDynamicCast<JSHTMLOListElement*>(JSValue::decode(thisValue)); if (!domObject) return throwVMTypeError(exec); if (!domObject) return throwVMTypeError(exec); return JSValue::encode(JSHTMLOListElement::getConstructor(exec->vm(), domObject->globalObject())); }
EncodedJSValue jsHTMLOListElementType(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName) { JSHTMLOListElement* castedThis = jsDynamicCast<JSHTMLOListElement*>(JSValue::decode(thisValue)); UNUSED_PARAM(slotBase); if (!castedThis) return throwVMTypeError(exec); UNUSED_PARAM(exec); HTMLOListElement& impl = castedThis->impl(); JSValue result = jsStringWithCache(exec, impl.fastGetAttribute(WebCore::HTMLNames::typeAttr)); return JSValue::encode(result); }
EncodedJSValue jsHTMLOListElementReversed(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName) { JSHTMLOListElement* castedThis = jsDynamicCast<JSHTMLOListElement*>(JSValue::decode(thisValue)); UNUSED_PARAM(slotBase); if (!castedThis) return throwVMTypeError(exec); UNUSED_PARAM(exec); HTMLOListElement& impl = castedThis->impl(); JSValue result = jsBoolean(impl.fastHasAttribute(WebCore::HTMLNames::reversedAttr)); return JSValue::encode(result); }
EncodedJSValue jsHTMLOListElementStart(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName) { JSHTMLOListElement* castedThis = jsDynamicCast<JSHTMLOListElement*>(JSValue::decode(thisValue)); UNUSED_PARAM(slotBase); if (!castedThis) return throwVMTypeError(exec); UNUSED_PARAM(exec); HTMLOListElement& impl = castedThis->impl(); JSValue result = jsNumber(impl.start()); return JSValue::encode(result); }
void setJSHTMLOListElementType(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue) { JSValue value = JSValue::decode(encodedValue); UNUSED_PARAM(exec); JSHTMLOListElement* castedThis = jsDynamicCast<JSHTMLOListElement*>(JSValue::decode(thisValue)); if (!castedThis) { throwVMTypeError(exec); return; } HTMLOListElement& impl = castedThis->impl(); const String& nativeValue(valueToStringWithNullCheck(exec, value)); if (exec->hadException()) return; impl.setAttribute(WebCore::HTMLNames::typeAttr, nativeValue); }
void setJSHTMLOListElementReversed(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue) { JSValue value = JSValue::decode(encodedValue); UNUSED_PARAM(exec); JSHTMLOListElement* castedThis = jsDynamicCast<JSHTMLOListElement*>(JSValue::decode(thisValue)); if (!castedThis) { throwVMTypeError(exec); return; } HTMLOListElement& impl = castedThis->impl(); bool nativeValue(value.toBoolean(exec)); if (exec->hadException()) return; impl.setBooleanAttribute(WebCore::HTMLNames::reversedAttr, nativeValue); }
void setJSHTMLOListElementStart(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue) { JSValue value = JSValue::decode(encodedValue); UNUSED_PARAM(exec); JSHTMLOListElement* castedThis = jsDynamicCast<JSHTMLOListElement*>(JSValue::decode(thisValue)); if (!castedThis) { throwVMTypeError(exec); return; } HTMLOListElement& impl = castedThis->impl(); int nativeValue(toInt32(exec, value, NormalConversion)); if (exec->hadException()) return; impl.setStart(nativeValue); }
void setJSHTMLOListElementType(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLOListElement* castedThis = static_cast<JSHTMLOListElement*>(thisObject); HTMLOListElement* imp = static_cast<HTMLOListElement*>(castedThis->impl()); imp->setAttribute(WebCore::HTMLNames::typeAttr, valueToStringWithNullCheck(exec, value)); }
void setJSHTMLOListElementStart(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLOListElement* castedThis = static_cast<JSHTMLOListElement*>(thisObject); HTMLOListElement* imp = static_cast<HTMLOListElement*>(castedThis->impl()); imp->setStart(value.toInt32(exec)); }
void setJSHTMLOListElementCompact(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLOListElement* castedThis = static_cast<JSHTMLOListElement*>(thisObject); HTMLOListElement* imp = static_cast<HTMLOListElement*>(castedThis->impl()); imp->setBooleanAttribute(WebCore::HTMLNames::compactAttr, value.toBoolean(exec)); }
JSValue jsHTMLOListElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLOListElement* domObject = static_cast<JSHTMLOListElement*>(asObject(slotBase)); return JSHTMLOListElement::getConstructor(exec, domObject->globalObject()); }