static v8::Handle<v8::Value> systemLanguageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGTests.systemLanguage._get");
    SVGTests* imp = V8SVGTests::toNative(info.Holder());
    SVGElement* context = V8Proxy::svgContext(imp);
    PassRefPtr<SVGStringList> resultAsPassRefPtr = V8Proxy::withSVGContext(imp->systemLanguage(), context);
    return toV8(resultAsPassRefPtr);
}
Beispiel #2
0
JSValue* JSSVGTests::getValueProperty(ExecState* exec, int token) const
{
    switch (token) {
    case RequiredFeaturesAttrNum: {
        SVGTests* imp = static_cast<SVGTests*>(impl());
        return toJS(exec, WTF::getPtr(imp->requiredFeatures()), context());
    }
    case RequiredExtensionsAttrNum: {
        SVGTests* imp = static_cast<SVGTests*>(impl());
        return toJS(exec, WTF::getPtr(imp->requiredExtensions()), context());
    }
    case SystemLanguageAttrNum: {
        SVGTests* imp = static_cast<SVGTests*>(impl());
        return toJS(exec, WTF::getPtr(imp->systemLanguage()), context());
    }
    }
    return 0;
}