JSValue jsSVGRectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement())); }
JSValue jsSVGRectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); return jsString(exec, imp->xmlspace()); }
JSValue jsSVGRectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp); }
JSValue jsSVGRectElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->xmlspace()); return result; }
JSValue jsSVGRectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); return toJS(exec, castedThis->globalObject(), obj.get(), imp); }
JSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); return toJS(exec, castedThis->globalObject(), obj.get(), imp); }
JSValue jsSVGRectElementFarthestViewportElement(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement())); return result; }
JSValue jsSVGRectElementSystemLanguage(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGStaticListPropertyTearOff<SVGStringList>::create(GetOwnerElementForType<SVGRectElement, IsDerivedFromSVGElement<SVGRectElement>::value>::ownerElement(imp), imp->systemLanguage()))); return result; }
JSValue jsSVGRectElementRequiredExtensions(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp); return result; }
JSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
JSValue jsSVGRectElementTransform(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGRectElement::s_info)) return throwError(exec, TypeError); JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue)); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl()); JSC::JSValue result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp); return result; }
EncodedJSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName) { JSSVGRectElement* castedThis = jsDynamicCast<JSSVGRectElement*>(JSValue::decode(thisValue)); UNUSED_PARAM(slotBase); if (!castedThis) return throwVMTypeError(exec); UNUSED_PARAM(exec); SVGRectElement& impl = castedThis->impl(); RefPtr<SVGAnimatedBoolean> obj = impl.externalResourcesRequiredAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return JSValue::encode(result); }
JSValue* JSSVGRectElementPrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) { if (!thisObj->inherits(&JSSVGRectElement::info)) return throwError(exec, TypeError); JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(thisObj); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl()); switch (id) { case JSSVGRectElement::HasExtensionFuncNum: { String extension = args[0]->toString(exec); KJS::JSValue* result = jsBoolean(imp->hasExtension(extension)); return result; } case JSSVGRectElement::GetPresentationAttributeFuncNum: { String name = args[0]->toString(exec); KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name))); return result; } case JSSVGRectElement::GetBBoxFuncNum: { KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<FloatRect>(imp->getBBox()), imp); return result; } case JSSVGRectElement::GetCTMFuncNum: { KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<AffineTransform>(imp->getCTM()), imp); return result; } case JSSVGRectElement::GetScreenCTMFuncNum: { KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<AffineTransform>(imp->getScreenCTM()), imp); return result; } case JSSVGRectElement::GetTransformToElementFuncNum: { ExceptionCode ec = 0; SVGElement* element = toSVGElement(args[0]); KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<AffineTransform>(imp->getTransformToElement(element, ec)), imp); setDOMException(exec, ec); return result; } } return 0; }
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGRectElement::s_info)) return throwError(exec, TypeError); JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue)); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl()); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<AffineTransform>::create(imp->getCTM()).get(), 0 /* no context on purpose */); return result; }
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGRectElement::s_info)) return throwError(exec, TypeError); JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue)); SVGRectElement* imp = static_cast<SVGRectElement*>(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 jsSVGRectElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGRectElement::s_info)) return throwError(exec, TypeError); JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue)); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl()); const UString& extension = args.at(0).toString(exec); JSC::JSValue result = jsBoolean(imp->hasExtension(extension)); return result; }
EncodedJSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetScreenCTM(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSSVGRectElement::s_info)) return throwVMTypeError(exec); JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGRectElement::s_info); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(imp->getScreenCTM()))); return JSValue::encode(result); }
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSSVGRectElement::s_info)) return throwError(exec, TypeError); JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue)); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl()); ExceptionCode ec = 0; SVGElement* element = toSVGElement(args.at(0)); JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getTransformToElement(element, ec)).get(), imp); setDOMException(exec, ec); return result; }
EncodedJSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSSVGRectElement::s_info)) return throwVMTypeError(exec); JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGRectElement::s_info); SVGRectElement* imp = static_cast<SVGRectElement*>(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 jsSVGRectElementPrototypeFunctionHasExtension(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSSVGRectElement::s_info)) return throwVMTypeError(exec); JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGRectElement::s_info); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); const String& extension(ustringToString(exec->argument(0).toString(exec))); if (exec->hadException()) return JSValue::encode(jsUndefined()); JSC::JSValue result = jsBoolean(imp->hasExtension(extension)); return JSValue::encode(result); }
EncodedJSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetTransformToElement(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSSVGRectElement::s_info)) return throwVMTypeError(exec); JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGRectElement::s_info); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); ExceptionCode ec = 0; SVGElement* element(toSVGElement(exec->argument(0))); if (exec->hadException()) return JSValue::encode(jsUndefined()); JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(imp->getTransformToElement(element, ec)))); setDOMException(exec, ec); return JSValue::encode(result); }
void setJSSVGRectElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(thisObject); SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl()); imp->setXmlspace(ustringToString(value.toString(exec))); }