JSValue* JSSVGStyleElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case XmlspaceAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); return jsString(imp->xmlspace()); } case TypeAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); return jsString(imp->type()); } case MediaAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); return jsString(imp->media()); } case TitleAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); return jsString(imp->title()); } } return 0; }
JSValue jsSVGStyleElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGStyleElement* castedThis = static_cast<JSSVGStyleElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGStyleElement* imp = static_cast<SVGStyleElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->xmlspace()); return result; }