void setJSSVGStyleElementMedia(ExecState* exec, JSObject* thisObject, JSValue value) { SVGStyleElement* imp = static_cast<SVGStyleElement*>(static_cast<JSSVGStyleElement*>(thisObject)->impl()); ExceptionCode ec = 0; imp->setMedia(value.toString(exec), ec); setDOMException(exec, ec); }
void JSSVGStyleElement::putValueProperty(ExecState* exec, int token, JSValue* value, int /*attr*/) { switch (token) { case XmlspaceAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); ExceptionCode ec = 0; imp->setXmlspace(value->toString(exec), ec); setDOMException(exec, ec); break; } case TypeAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); ExceptionCode ec = 0; imp->setType(value->toString(exec), ec); setDOMException(exec, ec); break; } case MediaAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); ExceptionCode ec = 0; imp->setMedia(value->toString(exec), ec); setDOMException(exec, ec); break; } case TitleAttrNum: { SVGStyleElement* imp = static_cast<SVGStyleElement*>(impl()); ExceptionCode ec = 0; imp->setTitle(value->toString(exec), ec); setDOMException(exec, ec); break; } } }