void JSHTMLLinkElement::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case DisabledAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setDisabled(value->toBoolean(exec)); break; } case CharsetAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setCharset(valueToStringWithNullCheck(exec, value)); break; } case HrefAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setHref(valueToStringWithNullCheck(exec, value)); break; } case HreflangAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setHreflang(valueToStringWithNullCheck(exec, value)); break; } case MediaAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setMedia(valueToStringWithNullCheck(exec, value)); break; } case RelAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setRel(valueToStringWithNullCheck(exec, value)); break; } case RevAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setRev(valueToStringWithNullCheck(exec, value)); break; } case TargetAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setTarget(valueToStringWithNullCheck(exec, value)); break; } case TypeAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); imp->setType(valueToStringWithNullCheck(exec, value)); break; } } }
void setJSHTMLLinkElementHreflang(ExecState* exec, JSObject* thisObject, JSValue value) { JSHTMLLinkElement* castedThisObj = static_cast<JSHTMLLinkElement*>(thisObject); HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(castedThisObj->impl()); imp->setHreflang(valueToStringWithNullCheck(exec, value)); }