static v8::Handle<v8::Value> getPresentationAttributeCallback(const v8::Arguments& args) { INC_STATS("DOM.SVGFETurbulenceElement.getPresentationAttribute"); SVGFETurbulenceElement* imp = V8SVGFETurbulenceElement::toNative(args.Holder()); STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, name, MAYBE_MISSING_PARAMETER(args, 0, MissingIsUndefined)); return toV8(imp->getPresentationAttribute(name)); }
JSValue* JSSVGFETurbulenceElementPrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) { if (!thisObj->inherits(&JSSVGFETurbulenceElement::info)) return throwError(exec, TypeError); JSSVGFETurbulenceElement* castedThisObj = static_cast<JSSVGFETurbulenceElement*>(thisObj); SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThisObj->impl()); switch (id) { case JSSVGFETurbulenceElement::GetPresentationAttributeFuncNum: { String name = args[0]->toString(exec); KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name))); return result; } } return 0; }
static v8::Handle<v8::Value> xAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGFETurbulenceElement.x._get"); SVGFETurbulenceElement* imp = V8SVGFETurbulenceElement::toNative(info.Holder()); return toV8(imp->xAnimated()); }
static v8::Handle<v8::Value> typeAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGFETurbulenceElement.type._get"); SVGFETurbulenceElement* imp = V8SVGFETurbulenceElement::toNative(info.Holder()); return toV8(static_pointer_cast<SVGAnimatedEnumeration>(imp->typeAnimated())); }
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; }