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