JSValue jsSVGSwitchElementStyle(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGSwitchElement* castedThis = static_cast<JSSVGSwitchElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style())); return result; }
JSValue* JSSVGSwitchElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case RequiredFeaturesAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredFeatures()), imp); } case RequiredExtensionsAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredExtensions()), imp); } case SystemLanguageAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp); } case XmllangAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return jsString(exec, imp->xmllang()); } case XmlspaceAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return jsString(exec, imp->xmlspace()); } case ExternalResourcesRequiredAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); return toJS(exec, obj.get(), imp); } case ClassNameAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); return toJS(exec, obj.get(), imp); } case StyleAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->style())); } case TransformAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); return toJS(exec, obj.get(), imp); } case NearestViewportElementAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->nearestViewportElement())); } case FarthestViewportElementAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->farthestViewportElement())); } } return 0; }
static v8::Handle<v8::Value> styleAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(info.Holder()); return toV8Fast(imp->style(), info, imp); }