static v8::Handle<v8::Value> hasExtensionCallback(const v8::Arguments& args) { INC_STATS("DOM.SVGLineElement.hasExtension"); SVGLineElement* imp = V8SVGLineElement::toNative(args.Holder()); STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, extension, args[0]); return v8Boolean(imp->hasExtension(extension)); }
JSValue jsSVGLineElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); SVGLineElement* imp = static_cast<SVGLineElement*>(static_cast<JSSVGLineElement*>(asObject(slot.slotBase()))->impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); return toJS(exec, obj.get(), imp); }
JSValue jsSVGLineElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); SVGLineElement* imp = static_cast<SVGLineElement*>(static_cast<JSSVGLineElement*>(asObject(slot.slotBase()))->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); return toJS(exec, obj.get(), imp); }
static v8::Handle<v8::Value> getPresentationAttributeCallback(const v8::Arguments& args) { INC_STATS("DOM.SVGLineElement.getPresentationAttribute"); SVGLineElement* imp = V8SVGLineElement::toNative(args.Holder()); STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, name, args[0]); return toV8(imp->getPresentationAttribute(name)); }
static void xmlspaceAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGLineElement.xmlspace._set"); SVGLineElement* imp = V8SVGLineElement::toNative(info.Holder()); V8Parameter<> v = value; imp->setXmlspace(v); return; }
static void updatePathFromLineElement(SVGElement* element, Path& path) { SVGLineElement* line = toSVGLineElement(element); SVGLengthContext lengthContext(element); path.moveTo(FloatPoint(line->x1().value(lengthContext), line->y1().value(lengthContext))); path.addLineTo(FloatPoint(line->x2().value(lengthContext), line->y2().value(lengthContext))); }
static v8::Handle<v8::Value> requiredFeaturesAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGLineElement.requiredFeatures._get"); SVGLineElement* imp = V8SVGLineElement::toNative(info.Holder()); SVGElement* context = imp; PassRefPtr<SVGStringList> resultAsPassRefPtr = V8Proxy::withSVGContext(imp->requiredFeatures(), context); return toV8(resultAsPassRefPtr); }
static v8::Handle<v8::Value> y2AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGLineElement.y2._get"); SVGLineElement* imp = V8SVGLineElement::toNative(info.Holder()); SVGElement* context = imp; PassRefPtr<SVGAnimatedLength> resultAsPassRefPtr = V8Proxy::withSVGContext(imp->y2Animated(), context); return toV8(resultAsPassRefPtr); }
static void updatePathFromLineElement(SVGElement* element, Path& path) { ASSERT_WITH_SECURITY_IMPLICATION(element->hasTagName(SVGNames::lineTag)); SVGLineElement* line = static_cast<SVGLineElement*>(element); SVGLengthContext lengthContext(element); path.moveTo(FloatPoint(line->x1().value(lengthContext), line->y1().value(lengthContext))); path.addLineTo(FloatPoint(line->x2().value(lengthContext), line->y2().value(lengthContext))); }
static v8::Handle<v8::Value> getBBoxCallback(const v8::Arguments& args) { INC_STATS("DOM.SVGLineElement.getBBox"); SVGLineElement* imp = V8SVGLineElement::toNative(args.Holder()); FloatRect result = imp->getBBox(); RefPtr<V8SVGPODTypeWrapper<FloatRect> > wrapper = V8SVGStaticPODTypeWrapper<FloatRect>::create(result); SVGElement* context = imp; V8Proxy::setSVGContext(wrapper.get(), context); return toV8(wrapper.release()); }
static v8::Handle<v8::Value> getScreenCTMCallback(const v8::Arguments& args) { INC_STATS("DOM.SVGLineElement.getScreenCTM"); SVGLineElement* imp = V8SVGLineElement::toNative(args.Holder()); AffineTransform result = imp->getScreenCTM(); RefPtr<V8SVGPODTypeWrapper<AffineTransform> > wrapper = V8SVGStaticPODTypeWrapper<AffineTransform>::create(result); SVGElement* context = imp; V8Proxy::setSVGContext(wrapper.get(), context); return toV8(wrapper.release()); }
JSValue* jsSVGLineElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGLineElement::s_info)) return throwError(exec, TypeError); JSSVGLineElement* castedThisObj = static_cast<JSSVGLineElement*>(thisValue); SVGLineElement* imp = static_cast<SVGLineElement*>(castedThisObj->impl()); JSC::JSValue* result = toJS(exec, JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp); return result; }
JSValue* jsSVGLineElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGLineElement::s_info)) return throwError(exec, TypeError); JSSVGLineElement* castedThisObj = static_cast<JSSVGLineElement*>(thisValue); SVGLineElement* imp = static_cast<SVGLineElement*>(castedThisObj->impl()); const UString& extension = args.at(exec, 0)->toString(exec); JSC::JSValue* result = jsBoolean(imp->hasExtension(extension)); return result; }
JSValue* jsSVGLineElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGLineElement::s_info)) return throwError(exec, TypeError); JSSVGLineElement* castedThisObj = static_cast<JSSVGLineElement*>(thisValue); SVGLineElement* imp = static_cast<SVGLineElement*>(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 jsSVGLineElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGLineElement::s_info)) return throwError(exec, TypeError); JSSVGLineElement* castedThisObj = static_cast<JSSVGLineElement*>(asObject(thisValue)); SVGLineElement* imp = static_cast<SVGLineElement*>(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 jsSVGLineElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGLineElement::s_info)) return throwError(exec, TypeError); JSSVGLineElement* castedThisObj = static_cast<JSSVGLineElement*>(asObject(thisValue)); SVGLineElement* imp = static_cast<SVGLineElement*>(castedThisObj->impl()); const UString& extension = args.at(0).toString(exec); JSC::JSValue result = jsBoolean(imp->hasExtension(extension)); return result; }
void JSSVGLineElement::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case XmllangAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); imp->setXmllang(value->toString(exec)); break; } case XmlspaceAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); imp->setXmlspace(value->toString(exec)); break; } } }
static TextStream& operator<<(TextStream& ts, const RenderSVGShape& shape) { writePositionAndStyle(ts, shape); ASSERT(shape.node()->isSVGElement()); SVGElement* svgElement = toSVGElement(shape.node()); SVGLengthContext lengthContext(svgElement); if (svgElement->hasTagName(SVGNames::rectTag)) { SVGRectElement* element = static_cast<SVGRectElement*>(svgElement); writeNameValuePair(ts, "x", element->x().value(lengthContext)); writeNameValuePair(ts, "y", element->y().value(lengthContext)); writeNameValuePair(ts, "width", element->width().value(lengthContext)); writeNameValuePair(ts, "height", element->height().value(lengthContext)); } else if (svgElement->hasTagName(SVGNames::lineTag)) { SVGLineElement* element = static_cast<SVGLineElement*>(svgElement); writeNameValuePair(ts, "x1", element->x1().value(lengthContext)); writeNameValuePair(ts, "y1", element->y1().value(lengthContext)); writeNameValuePair(ts, "x2", element->x2().value(lengthContext)); writeNameValuePair(ts, "y2", element->y2().value(lengthContext)); } else if (svgElement->hasTagName(SVGNames::ellipseTag)) { SVGEllipseElement* element = static_cast<SVGEllipseElement*>(svgElement); writeNameValuePair(ts, "cx", element->cx().value(lengthContext)); writeNameValuePair(ts, "cy", element->cy().value(lengthContext)); writeNameValuePair(ts, "rx", element->rx().value(lengthContext)); writeNameValuePair(ts, "ry", element->ry().value(lengthContext)); } else if (svgElement->hasTagName(SVGNames::circleTag)) { SVGCircleElement* element = static_cast<SVGCircleElement*>(svgElement); writeNameValuePair(ts, "cx", element->cx().value(lengthContext)); writeNameValuePair(ts, "cy", element->cy().value(lengthContext)); writeNameValuePair(ts, "r", element->r().value(lengthContext)); } else if (svgElement->hasTagName(SVGNames::polygonTag) || svgElement->hasTagName(SVGNames::polylineTag)) { SVGPolyElement* element = static_cast<SVGPolyElement*>(svgElement); writeNameAndQuotedValue(ts, "points", element->pointList().valueAsString()); } else if (svgElement->hasTagName(SVGNames::pathTag)) { SVGPathElement* element = toSVGPathElement(svgElement); String pathString; // FIXME: We should switch to UnalteredParsing here - this will affect the path dumping output of dozens of tests. buildStringFromByteStream(element->pathByteStream(), pathString, NormalizedParsing); writeNameAndQuotedValue(ts, "data", pathString); } else ASSERT_NOT_REACHED(); return ts; }
static v8::Handle<v8::Value> getTransformToElementCallback(const v8::Arguments& args) { INC_STATS("DOM.SVGLineElement.getTransformToElement"); SVGLineElement* imp = V8SVGLineElement::toNative(args.Holder()); ExceptionCode ec = 0; { EXCEPTION_BLOCK(SVGElement*, element, V8SVGElement::HasInstance(args[0]) ? V8SVGElement::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); AffineTransform result = imp->getTransformToElement(element, ec); if (UNLIKELY(ec)) goto fail; RefPtr<V8SVGPODTypeWrapper<AffineTransform> > wrapper = V8SVGStaticPODTypeWrapper<AffineTransform>::create(result); SVGElement* context = imp; V8Proxy::setSVGContext(wrapper.get(), context); return toV8(wrapper.release()); } fail: V8Proxy::setDOMException(ec); return v8::Handle<v8::Value>(); }
JSValue JSC_HOST_CALL jsSVGLineElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGLineElement::s_info)) return throwError(exec, TypeError); JSSVGLineElement* castedThisObj = static_cast<JSSVGLineElement*>(asObject(thisValue)); SVGLineElement* imp = static_cast<SVGLineElement*>(castedThisObj->impl()); JSC::JSValue result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp); return result; }
JSValue* jsSVGLineElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSSVGLineElement::s_info)) return throwError(exec, TypeError); JSSVGLineElement* castedThisObj = static_cast<JSSVGLineElement*>(thisValue); SVGLineElement* imp = static_cast<SVGLineElement*>(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; }
JSValue* JSSVGLineElementPrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) { if (!thisObj->inherits(&JSSVGLineElement::info)) return throwError(exec, TypeError); SVGLineElement* imp = static_cast<SVGLineElement*>(static_cast<JSSVGLineElement*>(thisObj)->impl()); switch (id) { case JSSVGLineElement::HasExtensionFuncNum: { String extension = args[0]->toString(exec); KJS::JSValue* result = jsBoolean(imp->hasExtension(extension)); return result; } case JSSVGLineElement::GetBBoxFuncNum: { KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapper<FloatRect>(imp->getBBox())); return result; } case JSSVGLineElement::GetCTMFuncNum: { KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapper<AffineTransform>(imp->getCTM())); return result; } case JSSVGLineElement::GetScreenCTMFuncNum: { KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapper<AffineTransform>(imp->getScreenCTM())); return result; } case JSSVGLineElement::GetTransformToElementFuncNum: { ExceptionCode ec = 0; SVGElement* element = toSVGElement(args[0]); KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapper<AffineTransform>(imp->getTransformToElement(element, ec))); setDOMException(exec, ec); return result; } } return 0; }
JSValue* JSSVGLineElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case X1AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedLength> obj = imp->x1Animated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedLength>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedLength>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedLength>(obj.get(), imp); } } return toJS(exec, obj.get()); } case Y1AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedLength> obj = imp->y1Animated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedLength>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedLength>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedLength>(obj.get(), imp); } } return toJS(exec, obj.get()); } case X2AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedLength> obj = imp->x2Animated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedLength>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedLength>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedLength>(obj.get(), imp); } } return toJS(exec, obj.get()); } case Y2AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedLength> obj = imp->y2Animated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedLength>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedLength>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedLength>(obj.get(), imp); } } return toJS(exec, obj.get()); } case RequiredFeaturesAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredFeatures())); } case RequiredExtensionsAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredExtensions())); } case SystemLanguageAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->systemLanguage())); } case XmllangAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return jsString(imp->xmllang()); } case XmlspaceAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return jsString(imp->xmlspace()); } case ExternalResourcesRequiredAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedBoolean>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedBoolean>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedBoolean>(obj.get(), imp); } } return toJS(exec, obj.get()); } case ClassNameAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedString>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedString>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedString>(obj.get(), imp); } } return toJS(exec, obj.get()); } case StyleAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->style())); } case TransformAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedTransformList>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedTransformList>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedTransformList>(obj.get(), imp); } } return toJS(exec, obj.get()); } case NearestViewportElementAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->nearestViewportElement())); } case FarthestViewportElementAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->farthestViewportElement())); } } return 0; }
JSValue* JSSVGLineElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case X1AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->x1Animated(); return toJS(exec, obj.get(), imp); } case Y1AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->y1Animated(); return toJS(exec, obj.get(), imp); } case X2AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->x2Animated(); return toJS(exec, obj.get(), imp); } case Y2AttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->y2Animated(); return toJS(exec, obj.get(), imp); } case RequiredFeaturesAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredFeatures()), imp); } case RequiredExtensionsAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->requiredExtensions()), imp); } case SystemLanguageAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp); } case XmllangAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return jsString(exec, imp->xmllang()); } case XmlspaceAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return jsString(exec, imp->xmlspace()); } case ExternalResourcesRequiredAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); return toJS(exec, obj.get(), imp); } case ClassNameAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); return toJS(exec, obj.get(), imp); } case StyleAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->style())); } case TransformAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated(); return toJS(exec, obj.get(), imp); } case NearestViewportElementAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->nearestViewportElement())); } case FarthestViewportElementAttrNum: { SVGLineElement* imp = static_cast<SVGLineElement*>(impl()); return toJS(exec, WTF::getPtr(imp->farthestViewportElement())); } } return 0; }
void setJSSVGLineElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) { SVGLineElement* imp = static_cast<SVGLineElement*>(static_cast<JSSVGLineElement*>(thisObject)->impl()); imp->setXmlspace(value.toString(exec)); }
JSValue jsSVGLineElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); SVGLineElement* imp = static_cast<SVGLineElement*>(static_cast<JSSVGLineElement*>(asObject(slot.slotBase()))->impl()); return toJS(exec, WTF::getPtr(imp->farthestViewportElement())); }
static v8::Handle<v8::Value> xmlspaceAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGLineElement.xmlspace._get"); SVGLineElement* imp = V8SVGLineElement::toNative(info.Holder()); return v8String(imp->xmlspace()); }
static v8::Handle<v8::Value> farthestViewportElementAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGLineElement.farthestViewportElement._get"); SVGLineElement* imp = V8SVGLineElement::toNative(info.Holder()); return toV8(imp->farthestViewportElement()); }
JSValue jsSVGLineElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); SVGLineElement* imp = static_cast<SVGLineElement*>(static_cast<JSSVGLineElement*>(asObject(slot.slotBase()))->impl()); return jsString(exec, imp->xmlspace()); }
JSValue jsSVGLineElementSystemLanguage(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); SVGLineElement* imp = static_cast<SVGLineElement*>(static_cast<JSSVGLineElement*>(asObject(slot.slotBase()))->impl()); return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp); }