don't discard iframe children.
[kdelibs.git] / khtml / svg / SVGPathSegCurvetoQuadratic.cpp
blob170a183c1455e6d6a8f7e0e3df622ace2944b16a
1 /*
2 Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005, 2006 Rob Buis <buis@kde.org>
5 This file is part of the KDE project
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #include "config.h"
24 #include "wtf/Platform.h"
26 #if ENABLE(SVG)
27 #include "SVGPathSegCurvetoQuadratic.h"
29 #include "SVGStyledElement.h"
31 namespace WebCore {
33 SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)
34 : SVGPathSeg()
35 , m_x(x)
36 , m_y(y)
37 , m_x1(x1)
38 , m_y1(y1)
42 SVGPathSegCurvetoQuadraticAbs::~SVGPathSegCurvetoQuadraticAbs()
46 void SVGPathSegCurvetoQuadraticAbs::setX(float x)
48 m_x = x;
51 float SVGPathSegCurvetoQuadraticAbs::x() const
53 return m_x;
56 void SVGPathSegCurvetoQuadraticAbs::setY(float y)
58 m_y = y;
61 float SVGPathSegCurvetoQuadraticAbs::y() const
63 return m_y;
66 void SVGPathSegCurvetoQuadraticAbs::setX1(float x1)
68 m_x1 = x1;
71 float SVGPathSegCurvetoQuadraticAbs::x1() const
73 return m_x1;
76 void SVGPathSegCurvetoQuadraticAbs::setY1(float y1)
78 m_y1 = y1;
81 float SVGPathSegCurvetoQuadraticAbs::y1() const
83 return m_y1;
89 SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)
90 : SVGPathSeg()
91 , m_x(x)
92 , m_y(y)
93 , m_x1(x1)
94 , m_y1(y1)
98 SVGPathSegCurvetoQuadraticRel::~SVGPathSegCurvetoQuadraticRel()
102 void SVGPathSegCurvetoQuadraticRel::setX(float x)
104 m_x = x;
107 float SVGPathSegCurvetoQuadraticRel::x() const
109 return m_x;
112 void SVGPathSegCurvetoQuadraticRel::setY(float y)
114 m_y = y;
117 float SVGPathSegCurvetoQuadraticRel::y() const
119 return m_y;
122 void SVGPathSegCurvetoQuadraticRel::setX1(float x1)
124 m_x1 = x1;
127 float SVGPathSegCurvetoQuadraticRel::x1() const
129 return m_x1;
132 void SVGPathSegCurvetoQuadraticRel::setY1(float y1)
134 m_y1 = y1;
137 float SVGPathSegCurvetoQuadraticRel::y1() const
139 return m_y1;
144 #endif // ENABLE(SVG)
146 // vim:ts=4:noet