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