JSValue jsSVGGradientElementStyle(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGGradientElement* castedThis = static_cast<JSSVGGradientElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGGradientElement* imp = static_cast<SVGGradientElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style())); return result; }
JSValue jsSVGGradientElementClassName(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGGradientElement* castedThis = static_cast<JSSVGGradientElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGGradientElement* imp = static_cast<SVGGradientElement*>(castedThis->impl()); RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
JSValue jsSVGGradientElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGGradientElement* castedThis = static_cast<JSSVGGradientElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGGradientElement* imp = static_cast<SVGGradientElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
JSValue jsSVGGradientElementSpreadMethod(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGGradientElement* castedThis = static_cast<JSSVGGradientElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGGradientElement* imp = static_cast<SVGGradientElement*>(castedThis->impl()); RefPtr<SVGAnimatedEnumeration> obj = imp->spreadMethodAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
JSValue* jsSVGGradientElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGGradientElement::s_info)) return throwError(exec, TypeError); JSSVGGradientElement* castedThisObj = static_cast<JSSVGGradientElement*>(thisValue); SVGGradientElement* imp = static_cast<SVGGradientElement*>(castedThisObj->impl()); const UString& name = args.at(exec, 0)->toString(exec); JSC::JSValue* result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name))); return result; }
JSValue JSC_HOST_CALL jsSVGGradientElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGGradientElement::s_info)) return throwError(exec, TypeError); JSSVGGradientElement* castedThisObj = static_cast<JSSVGGradientElement*>(asObject(thisValue)); SVGGradientElement* imp = static_cast<SVGGradientElement*>(castedThisObj->impl()); const UString& name = args.at(0).toString(exec); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name))); return result; }
EncodedJSValue JSC_HOST_CALL jsSVGGradientElementPrototypeFunctionGetPresentationAttribute(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSSVGGradientElement::s_info)) return throwVMTypeError(exec); JSSVGGradientElement* castedThis = static_cast<JSSVGGradientElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGGradientElement::s_info); SVGGradientElement* imp = static_cast<SVGGradientElement*>(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); }
JSValue jsSVGGradientElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGGradientElement* domObject = static_cast<JSSVGGradientElement*>(asObject(slotBase)); return JSSVGGradientElement::getConstructor(exec, domObject->globalObject()); }