JSValue* JSSVGMarkerElementPrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) { if (!thisObj->inherits(&JSSVGMarkerElement::info)) return throwError(exec, TypeError); JSSVGMarkerElement* castedThisObj = static_cast<JSSVGMarkerElement*>(thisObj); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThisObj->impl()); switch (id) { case JSSVGMarkerElement::SetOrientToAutoFuncNum: { imp->setOrientToAuto(); return jsUndefined(); } case JSSVGMarkerElement::SetOrientToAngleFuncNum: { SVGAngle* angle = toSVGAngle(args[0]); imp->setOrientToAngle(angle); return jsUndefined(); } case JSSVGMarkerElement::GetPresentationAttributeFuncNum: { String name = args[0]->toString(exec); KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name))); return result; } } return 0; }
JSValue jsSVGMarkerElementStyle(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style())); return result; }
JSValue jsSVGMarkerElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->xmlspace()); return result; }
JSValue jsSVGMarkerElementPreserveAspectRatio(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl()); RefPtr<SVGAnimatedPreserveAspectRatio> obj = imp->preserveAspectRatioAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); return result; }
JSValue jsSVGMarkerElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); return result; }
JSValue* jsSVGMarkerElementPrototypeFunctionSetOrientToAuto(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGMarkerElement::s_info)) return throwError(exec, TypeError); JSSVGMarkerElement* castedThisObj = static_cast<JSSVGMarkerElement*>(thisValue); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThisObj->impl()); imp->setOrientToAuto(); return jsUndefined(); }
JSValue JSC_HOST_CALL jsSVGMarkerElementPrototypeFunctionSetOrientToAuto(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGMarkerElement::s_info)) return throwError(exec, TypeError); JSSVGMarkerElement* castedThisObj = static_cast<JSSVGMarkerElement*>(asObject(thisValue)); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThisObj->impl()); imp->setOrientToAuto(); return jsUndefined(); }
JSValue* jsSVGMarkerElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGMarkerElement::s_info)) return throwError(exec, TypeError); JSSVGMarkerElement* castedThisObj = static_cast<JSSVGMarkerElement*>(thisValue); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(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 jsSVGMarkerElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGMarkerElement::s_info)) return throwError(exec, TypeError); JSSVGMarkerElement* castedThisObj = static_cast<JSSVGMarkerElement*>(asObject(thisValue)); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThisObj->impl()); const UString& name = args.at(0).toString(exec); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name))); return result; }
void setJSSVGMarkerElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGMarkerElement* castedThisObj = static_cast<JSSVGMarkerElement*>(thisObject); SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThisObj->impl()); imp->setXmlspace(value.toString(exec)); }
JSValue jsSVGMarkerElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGMarkerElement* domObject = static_cast<JSSVGMarkerElement*>(asObject(slotBase)); return JSSVGMarkerElement::getConstructor(exec, domObject->globalObject()); }