void JSHTMLButtonElement::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case AccessKeyAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); imp->setAccessKey(valueToStringWithNullCheck(exec, value)); break; } case DisabledAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); imp->setDisabled(value->toBoolean(exec)); break; } case AutofocusAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); imp->setAutofocus(value->toBoolean(exec)); break; } case NameAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); imp->setName(valueToStringWithNullCheck(exec, value)); break; } case ValueAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); imp->setValue(valueToStringWithNullCheck(exec, value)); break; } } }
void setJSHTMLButtonElementName(ExecState* exec, JSObject* thisObject, JSValue value) { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(static_cast<JSHTMLButtonElement*>(thisObject)->impl()); imp->setName(valueToStringWithNullCheck(exec, value)); }