void setJSSVGStyleElementTitle(ExecState* exec, JSObject* thisObject, JSValue value) { SVGStyleElement* imp = static_cast<SVGStyleElement*>(static_cast<JSSVGStyleElement*>(thisObject)->impl()); ExceptionCode ec = 0; imp->setTitle(value.toString(exec), ec); setDOMException(exec, ec); }
void setJSSVGStyleElementMedia(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGStyleElement* castedThisObj = static_cast<JSSVGStyleElement*>(thisObject); SVGStyleElement* imp = static_cast<SVGStyleElement*>(castedThisObj->impl()); ExceptionCode ec = 0; imp->setMedia(value.toString(exec), ec); setDOMException(exec, ec); }
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; }
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; }
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; } } }
JSValue jsSVGStyleElementTitle(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); SVGStyleElement* imp = static_cast<SVGStyleElement*>(static_cast<JSSVGStyleElement*>(asObject(slot.slotBase()))->impl()); return jsString(exec, imp->title()); }
void setJSSVGStyleElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGStyleElement* castedThisObj = static_cast<JSSVGStyleElement*>(thisObject); SVGStyleElement* imp = static_cast<SVGStyleElement*>(castedThisObj->impl()); imp->setXmlspace(value.toString(exec)); }