JSValue jsSVGFilterElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->xmlspace()); return result; }
JSValue jsSVGFilterElementStyle(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style())); return result; }
EncodedJSValue jsSVGFilterElementConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName) { JSSVGFilterElement* domObject = jsDynamicCast<JSSVGFilterElement*>(JSValue::decode(thisValue)); if (!domObject) return throwVMTypeError(exec); if (!domObject) return throwVMTypeError(exec); return JSValue::encode(JSSVGFilterElement::getConstructor(exec->vm(), domObject->globalObject())); }
JSValue jsSVGFilterElementClassName(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
JSValue jsSVGFilterElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
JSValue jsSVGFilterElementPrimitiveUnits(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); RefPtr<SVGAnimatedEnumeration> obj = imp->primitiveUnitsAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
EncodedJSValue jsSVGFilterElementHref(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName) { JSSVGFilterElement* castedThis = jsDynamicCast<JSSVGFilterElement*>(JSValue::decode(thisValue)); UNUSED_PARAM(slotBase); if (!castedThis) return throwVMTypeError(exec); UNUSED_PARAM(exec); SVGFilterElement& impl = castedThis->impl(); RefPtr<SVGAnimatedString> obj = impl.hrefAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return JSValue::encode(result); }
JSValue JSC_HOST_CALL jsSVGFilterElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGFilterElement::s_info)) return throwError(exec, TypeError); JSSVGFilterElement* castedThisObj = static_cast<JSSVGFilterElement*>(asObject(thisValue)); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThisObj->impl()); const UString& name = args.at(0).toString(exec); JSC::JSValue result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name))); return result; }
JSValue JSC_HOST_CALL jsSVGFilterElementPrototypeFunctionSetFilterRes(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGFilterElement::s_info)) return throwError(exec, TypeError); JSSVGFilterElement* castedThisObj = static_cast<JSSVGFilterElement*>(asObject(thisValue)); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThisObj->impl()); unsigned filterResX = args.at(0).toInt32(exec); unsigned filterResY = args.at(1).toInt32(exec); imp->setFilterRes(filterResX, filterResY); return jsUndefined(); }
EncodedJSValue JSC_HOST_CALL jsSVGFilterElementPrototypeFunctionGetPresentationAttribute(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSSVGFilterElement::s_info)) return throwVMTypeError(exec); JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGFilterElement::s_info); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); const String& name(ustringToString(exec->argument(0).toString(exec))); if (exec->hadException()) return JSValue::encode(jsUndefined()); JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name))); return JSValue::encode(result); }
EncodedJSValue JSC_HOST_CALL jsSVGFilterElementPrototypeFunctionSetFilterRes(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); JSSVGFilterElement* castedThis = jsDynamicCast<JSSVGFilterElement*>(thisValue); if (!castedThis) return throwVMTypeError(exec); ASSERT_GC_OBJECT_INHERITS(castedThis, JSSVGFilterElement::info()); SVGFilterElement& impl = castedThis->impl(); unsigned filterResX(toUInt32(exec, exec->argument(0), NormalConversion)); if (exec->hadException()) return JSValue::encode(jsUndefined()); unsigned filterResY(toUInt32(exec, exec->argument(1), NormalConversion)); if (exec->hadException()) return JSValue::encode(jsUndefined()); impl.setFilterRes(filterResX, filterResY); return JSValue::encode(jsUndefined()); }
EncodedJSValue JSC_HOST_CALL jsSVGFilterElementPrototypeFunctionSetFilterRes(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSSVGFilterElement::s_info)) return throwVMTypeError(exec); JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGFilterElement::s_info); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); unsigned filterResX(exec->argument(0).toUInt32(exec)); if (exec->hadException()) return JSValue::encode(jsUndefined()); unsigned filterResY(exec->argument(1).toUInt32(exec)); if (exec->hadException()) return JSValue::encode(jsUndefined()); imp->setFilterRes(filterResX, filterResY); return JSValue::encode(jsUndefined()); }
void setJSSVGFilterElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(thisObject); SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl()); imp->setXmlspace(ustringToString(value.toString(exec))); }
JSValue jsSVGFilterElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGFilterElement* domObject = static_cast<JSSVGFilterElement*>(asObject(slotBase)); return JSSVGFilterElement::getConstructor(exec, domObject->globalObject()); }