static void xmlspaceAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(info.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); imp->setXmlspace(v); return; }
JSValue jsSVGSwitchElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGSwitchElement* castedThis = static_cast<JSSVGSwitchElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->xmlspace()); return result; }
JSValue jsSVGSwitchElementFarthestViewportElement(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGSwitchElement* castedThis = static_cast<JSSVGSwitchElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement())); return result; }
JSValue jsSVGSwitchElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGSwitchElement* castedThis = static_cast<JSSVGSwitchElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); return result; }
JSValue jsSVGSwitchElementTransform(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGSwitchElement* castedThis = static_cast<JSSVGSwitchElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThis->impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); return result; }
JSValue* jsSVGSwitchElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGSwitchElement::s_info)) return throwError(exec, TypeError); JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(thisValue); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThisObj->impl()); JSC::JSValue* result = toJS(exec, JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp); return result; }
JSValue* jsSVGSwitchElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGSwitchElement::s_info)) return throwError(exec, TypeError); JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(thisValue); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThisObj->impl()); const UString& extension = args.at(exec, 0)->toString(exec); JSC::JSValue* result = jsBoolean(imp->hasExtension(extension)); return result; }
JSValue* jsSVGSwitchElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGSwitchElement::s_info)) return throwError(exec, TypeError); JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(thisValue); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(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 jsSVGSwitchElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGSwitchElement::s_info)) return throwError(exec, TypeError); JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(asObject(thisValue)); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThisObj->impl()); const UString& name = args.at(0).toString(exec); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name))); return result; }
JSValue JSC_HOST_CALL jsSVGSwitchElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGSwitchElement::s_info)) return throwError(exec, TypeError); JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(asObject(thisValue)); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThisObj->impl()); const UString& extension = args.at(0).toString(exec); JSC::JSValue result = jsBoolean(imp->hasExtension(extension)); return result; }
static v8::Handle<v8::Value> getTransformToElementCallback(const v8::Arguments& args) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(args.Holder()); ExceptionCode ec = 0; { V8TRYCATCH(SVGElement*, element, V8SVGElement::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)) ? V8SVGElement::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))) : 0); SVGMatrix result = imp->getTransformToElement(element, ec); if (UNLIKELY(ec)) goto fail; return toV8Fast(WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(result)), args, imp); } fail: return setDOMException(ec, args.GetIsolate()); }
void JSSVGSwitchElement::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case XmllangAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); imp->setXmllang(value->toString(exec)); break; } case XmlspaceAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); imp->setXmlspace(value->toString(exec)); break; } } }
JSValue JSC_HOST_CALL jsSVGSwitchElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGSwitchElement::s_info)) return throwError(exec, TypeError); JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(asObject(thisValue)); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThisObj->impl()); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<AffineTransform>::create(imp->getScreenCTM()).get(), 0 /* no context on purpose */); return result; }
JSValue* jsSVGSwitchElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGSwitchElement::s_info)) return throwError(exec, TypeError); JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(thisValue); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThisObj->impl()); ExceptionCode ec = 0; SVGElement* element = toSVGElement(args.at(exec, 0)); JSC::JSValue* result = toJS(exec, JSSVGStaticPODTypeWrapper<AffineTransform>::create(imp->getTransformToElement(element, ec)).get(), imp); setDOMException(exec, ec); return result; }
static v8::Handle<v8::Value> transformAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(info.Holder()); return toV8Fast(imp->transformAnimated(), info, imp); }
static v8::Handle<v8::Value> xmlspaceAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(info.Holder()); return v8String(imp->xmlspace(), info.GetIsolate()); }
static v8::Handle<v8::Value> systemLanguageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(info.Holder()); return toV8Fast(WTF::getPtr(SVGStaticListPropertyTearOff<SVGStringList>::create(imp, imp->systemLanguage())), info, imp); }
static v8::Handle<v8::Value> getScreenCTMCallback(const v8::Arguments& args) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(args.Holder()); return toV8Fast(WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(imp->getScreenCTM())), args, imp); }
static v8::Handle<v8::Value> getPresentationAttributeCallback(const v8::Arguments& args) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(args.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, name, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)); return toV8Fast(imp->getPresentationAttribute(name), args, imp); }
static v8::Handle<v8::Value> hasExtensionCallback(const v8::Arguments& args) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(args.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, extension, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)); return v8Boolean(imp->hasExtension(extension), args.GetIsolate()); }
static v8::Handle<v8::Value> farthestViewportElementAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGSwitchElement* imp = V8SVGSwitchElement::toNative(info.Holder()); return toV8Fast(imp->farthestViewportElement(), info, imp); }
void setJSSVGSwitchElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGSwitchElement* castedThisObj = static_cast<JSSVGSwitchElement*>(thisObject); SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(castedThisObj->impl()); imp->setXmlspace(value.toString(exec)); }
JSValue* JSSVGSwitchElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case RequiredFeaturesAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredFeatures()), imp); } case RequiredExtensionsAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredExtensions()), imp); } case SystemLanguageAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp); } case XmllangAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return jsString(exec, imp->xmllang()); } case XmlspaceAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return jsString(exec, imp->xmlspace()); } case ExternalResourcesRequiredAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); return toJS(exec, obj.get(), imp); } case ClassNameAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); return toJS(exec, obj.get(), imp); } case StyleAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->style())); } case TransformAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); return toJS(exec, obj.get(), imp); } case NearestViewportElementAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->nearestViewportElement())); } case FarthestViewportElementAttrNum: { SVGSwitchElement* imp = static_cast<SVGSwitchElement*>(impl()); return toJS(exec, WTF::getPtr(imp->farthestViewportElement())); } } return 0; }