void JSHTMLHRElement::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case AlignAttrNum: { HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl()); imp->setAlign(valueToStringWithNullCheck(exec, value)); break; } case NoShadeAttrNum: { HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl()); imp->setNoShade(value->toBoolean(exec)); break; } case SizeAttrNum: { HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl()); imp->setSize(valueToStringWithNullCheck(exec, value)); break; } case WidthAttrNum: { HTMLHRElement* imp = static_cast<HTMLHRElement*>(impl()); imp->setWidth(valueToStringWithNullCheck(exec, value)); break; } } }
void setJSHTMLHRElementAlign(ExecState* exec, JSObject* thisObject, JSValue value) { HTMLHRElement* imp = static_cast<HTMLHRElement*>(static_cast<JSHTMLHRElement*>(thisObject)->impl()); imp->setAlign(valueToStringWithNullCheck(exec, value)); }