コード例 #1
0
static v8::Handle<v8::Value> resultAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.SVGFETurbulenceElement.result._get");
    SVGFETurbulenceElement* imp = V8SVGFETurbulenceElement::toNative(info.Holder());
    return toV8(imp->resultAnimated());
}
コード例 #2
0
JSValue* JSSVGFETurbulenceElement::getValueProperty(ExecState* exec, int token) const
{
    switch (token) {
    case BaseFrequencyXAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedNumber> obj = imp->baseFrequencyXAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case BaseFrequencyYAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedNumber> obj = imp->baseFrequencyYAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case NumOctavesAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedInteger> obj = imp->numOctavesAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case SeedAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedNumber> obj = imp->seedAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case StitchTilesAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedEnumeration> obj = imp->stitchTilesAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case TypeAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedEnumeration> obj = imp->typeAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case XAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case YAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case WidthAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case HeightAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case ResultAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedString> obj = imp->resultAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case ClassNameAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
        return toJS(exec, obj.get(), imp);
    }
    case StyleAttrNum: {
        SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(impl());

        return toJS(exec, WTF::getPtr(imp->style()));
    }
    case ConstructorAttrNum:
        return getConstructor(exec);
    }
    return 0;
}