void setJSSVGPathSegMovetoRelY(ExecState* exec, JSObject* thisObject, JSValue value) { SVGPathSegMovetoRel* imp = static_cast<SVGPathSegMovetoRel*>(static_cast<JSSVGPathSegMovetoRel*>(thisObject)->impl()); imp->setY(value.toFloat(exec)); if (static_cast<JSSVGPathSegMovetoRel*>(thisObject)->context()) static_cast<JSSVGPathSegMovetoRel*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGPathSegMovetoRel*>(thisObject)->impl()->associatedAttributeName()); }
void JSSVGPathSegMovetoRel::putValueProperty(ExecState* exec, int token, JSValue* value, int /*attr*/) { switch (token) { case XAttrNum: { SVGPathSegMovetoRel* imp = static_cast<SVGPathSegMovetoRel*>(impl()); imp->setX(value->toFloat(exec)); break; } case YAttrNum: { SVGPathSegMovetoRel* imp = static_cast<SVGPathSegMovetoRel*>(impl()); imp->setY(value->toFloat(exec)); break; } } SVGPathSegMovetoRel* imp = static_cast<SVGPathSegMovetoRel*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (!activeFrame) return; SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions && extensions->hasGenericContext<SVGPathSeg>(imp)) { const SVGElement* context = extensions->genericContext<SVGPathSeg>(imp); ASSERT(context); context->notifyAttributeChange(); } }
void JSSVGPathSegMovetoRel::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case XAttrNum: { SVGPathSegMovetoRel* imp = static_cast<SVGPathSegMovetoRel*>(impl()); imp->setX(value->toFloat(exec)); if (context()) context()->svgAttributeChanged(impl()->associatedAttributeName()); break; } case YAttrNum: { SVGPathSegMovetoRel* imp = static_cast<SVGPathSegMovetoRel*>(impl()); imp->setY(value->toFloat(exec)); if (context()) context()->svgAttributeChanged(impl()->associatedAttributeName()); break; } } }