JSValue jsHTMLLinkElementTarget(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLLinkElement* castedThis = static_cast<JSHTMLLinkElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->target()); return result; }
JSValue* JSHTMLLinkElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case DisabledAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsBoolean(imp->disabled()); } case CharsetAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->charset()); } case HrefAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->href()); } case HreflangAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->hreflang()); } case MediaAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->media()); } case RelAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->rel()); } case RevAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->rev()); } case TargetAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->target()); } case TypeAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return jsString(exec, imp->type()); } case SheetAttrNum: { HTMLLinkElement* imp = static_cast<HTMLLinkElement*>(impl()); return toJS(exec, WTF::getPtr(imp->sheet())); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }