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