SVGPathSegLineto.cpp [plain text]
#include "config.h"
#if SVG_SUPPORT
#include "SVGPathSegLineto.h"
#include "SVGStyledElement.h"
using namespace WebCore;
SVGPathSegLinetoAbs::SVGPathSegLinetoAbs(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = 0.0;
}
SVGPathSegLinetoAbs::~SVGPathSegLinetoAbs()
{
}
void SVGPathSegLinetoAbs::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegLinetoAbs::x() const
{
return m_x;
}
void SVGPathSegLinetoAbs::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegLinetoAbs::y() const
{
return m_y;
}
SVGPathSegLinetoRel::SVGPathSegLinetoRel(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = 0.0;
}
SVGPathSegLinetoRel::~SVGPathSegLinetoRel()
{
}
void SVGPathSegLinetoRel::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegLinetoRel::x() const
{
return m_x;
}
void SVGPathSegLinetoRel::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegLinetoRel::y() const
{
return m_y;
}
#endif // SVG_SUPPORT