JSValue* jsSVGFEBlendElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGFEBlendElement::s_info)) return throwError(exec, TypeError); JSSVGFEBlendElement* castedThisObj = static_cast<JSSVGFEBlendElement*>(thisValue); SVGFEBlendElement* imp = static_cast<SVGFEBlendElement*>(castedThisObj->impl()); const UString& name = args.at(exec, 0)->toString(exec); JSC::JSValue* result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name))); return result; }
JSValue* JSSVGFEBlendElementPrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) { if (!thisObj->inherits(&JSSVGFEBlendElement::info)) return throwError(exec, TypeError); JSSVGFEBlendElement* castedThisObj = static_cast<JSSVGFEBlendElement*>(thisObj); SVGFEBlendElement* imp = static_cast<SVGFEBlendElement*>(castedThisObj->impl()); switch (id) { case JSSVGFEBlendElement::GetPresentationAttributeFuncNum: { String name = args[0]->toString(exec); KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name))); return result; } } return 0; }