| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 struct RadialGradientAttributes; | 30 struct RadialGradientAttributes; |
| 31 | 31 |
| 32 class SVGRadialGradientElement : public SVGGradientElement { | 32 class SVGRadialGradientElement : public SVGGradientElement { |
| 33 DEFINE_SELF_HANDLE(SVGRadialGradientElement) | 33 DEFINE_SELF_HANDLE(SVGRadialGradientElement) |
| 34 public: | 34 public: |
| 35 static PassRefPtr<SVGRadialGradientElement> create(const QualifiedName&, con
st Handle<Document>&); | 35 static PassRefPtr<SVGRadialGradientElement> create(const QualifiedName&, con
st Handle<Document>&); |
| 36 | 36 |
| 37 bool collectGradientAttributes(RadialGradientAttributes&); | 37 bool collectGradientAttributes(RadialGradientAttributes&); |
| 38 | 38 |
| 39 virtual void accept(Visitor* visitor) const OVERRIDE { SVGGradientElement::a
ccept(visitor); } |
| 40 |
| 39 private: | 41 private: |
| 40 SVGRadialGradientElement(const QualifiedName&, const Handle<Document>&); | 42 SVGRadialGradientElement(const QualifiedName&, const Handle<Document>&); |
| 41 | 43 |
| 42 bool isSupportedAttribute(const QualifiedName&); | 44 bool isSupportedAttribute(const QualifiedName&); |
| 43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 44 virtual void svgAttributeChanged(const QualifiedName&); | 46 virtual void svgAttributeChanged(const QualifiedName&); |
| 45 | 47 |
| 46 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); | 48 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
| 47 | 49 |
| 48 virtual bool selfHasRelativeLengths() const; | 50 virtual bool selfHasRelativeLengths() const; |
| 49 | 51 |
| 50 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGRadialGradientElement) | 52 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGRadialGradientElement) |
| 51 DECLARE_ANIMATED_LENGTH(Cx, cx) | 53 DECLARE_ANIMATED_LENGTH(Cx, cx) |
| 52 DECLARE_ANIMATED_LENGTH(Cy, cy) | 54 DECLARE_ANIMATED_LENGTH(Cy, cy) |
| 53 DECLARE_ANIMATED_LENGTH(R, r) | 55 DECLARE_ANIMATED_LENGTH(R, r) |
| 54 DECLARE_ANIMATED_LENGTH(Fx, fx) | 56 DECLARE_ANIMATED_LENGTH(Fx, fx) |
| 55 DECLARE_ANIMATED_LENGTH(Fy, fy) | 57 DECLARE_ANIMATED_LENGTH(Fy, fy) |
| 56 DECLARE_ANIMATED_LENGTH(Fr, fr) | 58 DECLARE_ANIMATED_LENGTH(Fr, fr) |
| 57 END_DECLARE_ANIMATED_PROPERTIES | 59 END_DECLARE_ANIMATED_PROPERTIES |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 } // namespace WebCore | 62 } // namespace WebCore |
| 61 | 63 |
| 62 #endif // ENABLE(SVG) | 64 #endif // ENABLE(SVG) |
| 63 #endif | 65 #endif |
| OLD | NEW |