static v8::Handle<v8::Value> systemLanguageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGPolylineElement.systemLanguage._get"); SVGPolylineElement* imp = V8SVGPolylineElement::toNative(info.Holder()); return toV8(WTF::getPtr(SVGStaticListPropertyTearOff<SVGStringList>::create(imp, imp->systemLanguage()))); }
JSValue* JSSVGPolylineElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case RequiredFeaturesAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredFeatures())); } case RequiredExtensionsAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredExtensions())); } case SystemLanguageAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->systemLanguage())); } case XmllangAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return jsString(imp->xmllang()); } case XmlspaceAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return jsString(imp->xmlspace()); } case ExternalResourcesRequiredAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedBoolean>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedBoolean>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedBoolean>(obj.get(), imp); } } return toJS(exec, obj.get()); } case ClassNameAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedString>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedString>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedString>(obj.get(), imp); } } return toJS(exec, obj.get()); } case StyleAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->style())); } case TransformAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedTransformList>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedTransformList>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedTransformList>(obj.get(), imp); } } return toJS(exec, obj.get()); } case NearestViewportElementAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->nearestViewportElement())); } case FarthestViewportElementAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->farthestViewportElement())); } case PointsAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->points())); } case AnimatedPointsAttrNum: { SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->animatedPoints())); } } return 0; }