JSValue jsSVGDefsElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl()); return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement())); }
JSValue jsSVGDefsElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl()); return jsString(exec, imp->xmlspace()); }
static void xmlspaceAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder()); V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); imp->setXmlspace(v); return; }
JSValue jsSVGDefsElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); return toJS(exec, castedThis->globalObject(), obj.get(), imp); }
JSValue jsSVGDefsElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); return toJS(exec, castedThis->globalObject(), obj.get(), imp); }
JSValue JSC_HOST_CALL jsSVGDefsElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGDefsElement::s_info)) return throwError(exec, TypeError); JSSVGDefsElement* castedThisObj = static_cast<JSSVGDefsElement*>(asObject(thisValue)); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThisObj->impl()); const UString& extension = args.at(0).toString(exec); JSC::JSValue result = jsBoolean(imp->hasExtension(extension)); return result; }
JSValue JSC_HOST_CALL jsSVGDefsElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGDefsElement::s_info)) return throwError(exec, TypeError); JSSVGDefsElement* castedThisObj = static_cast<JSSVGDefsElement*>(asObject(thisValue)); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThisObj->impl()); const UString& name = args.at(0).toString(exec); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name))); return result; }
static v8::Handle<v8::Value> getTransformToElementCallback(const v8::Arguments& args) { SVGDefsElement* imp = V8SVGDefsElement::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()); }
JSValue JSC_HOST_CALL jsSVGDefsElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGDefsElement::s_info)) return throwError(exec, TypeError); JSSVGDefsElement* castedThisObj = static_cast<JSSVGDefsElement*>(asObject(thisValue)); SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThisObj->impl()); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp); return result; }
static v8::Handle<v8::Value> farthestViewportElementAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder()); return toV8Fast(imp->farthestViewportElement(), info, imp); }
static v8::Handle<v8::Value> externalResourcesRequiredAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder()); return toV8Fast(imp->externalResourcesRequiredAnimated(), info, imp); }
void setJSSVGDefsElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) { SVGDefsElement* imp = static_cast<SVGDefsElement*>(static_cast<JSSVGDefsElement*>(thisObject)->impl()); imp->setXmlspace(value.toString(exec)); }
static v8::Handle<v8::Value> hasExtensionCallback(const v8::Arguments& args) { SVGDefsElement* imp = V8SVGDefsElement::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> getPresentationAttributeCallback(const v8::Arguments& args) { SVGDefsElement* imp = V8SVGDefsElement::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> getScreenCTMCallback(const v8::Arguments& args) { SVGDefsElement* imp = V8SVGDefsElement::toNative(args.Holder()); return toV8Fast(WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(imp->getScreenCTM())), args, imp); }
static v8::Handle<v8::Value> systemLanguageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder()); return toV8Fast(WTF::getPtr(SVGStaticListPropertyTearOff<SVGStringList>::create(imp, imp->systemLanguage())), info, imp); }
static v8::Handle<v8::Value> xmlspaceAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder()); return v8String(imp->xmlspace(), info.GetIsolate()); }
static v8::Handle<v8::Value> transformAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder()); return toV8Fast(imp->transformAnimated(), info, imp); }