| 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 LinearGradientAttributes; | 30 struct LinearGradientAttributes; |
| 31 | 31 |
| 32 class SVGLinearGradientElement : public SVGGradientElement { | 32 class SVGLinearGradientElement : public SVGGradientElement { |
| 33 DEFINE_SELF_HANDLE(SVGLinearGradientElement) | 33 DEFINE_SELF_HANDLE(SVGLinearGradientElement) |
| 34 public: | 34 public: |
| 35 static PassRefPtr<SVGLinearGradientElement> create(const QualifiedName&, con
st Handle<Document>&); | 35 static PassRefPtr<SVGLinearGradientElement> create(const QualifiedName&, con
st Handle<Document>&); |
| 36 | 36 |
| 37 bool collectGradientAttributes(LinearGradientAttributes&); | 37 bool collectGradientAttributes(LinearGradientAttributes&); |
| 38 | 38 |
| 39 virtual void accept(Visitor* visitor) const OVERRIDE { SVGGradientElement::a
ccept(visitor); } |
| 40 |
| 39 private: | 41 private: |
| 40 SVGLinearGradientElement(const QualifiedName&, const Handle<Document>&); | 42 SVGLinearGradientElement(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(SVGLinearGradientElement) | 52 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLinearGradientElement) |
| 51 DECLARE_ANIMATED_LENGTH(X1, x1) | 53 DECLARE_ANIMATED_LENGTH(X1, x1) |
| 52 DECLARE_ANIMATED_LENGTH(Y1, y1) | 54 DECLARE_ANIMATED_LENGTH(Y1, y1) |
| 53 DECLARE_ANIMATED_LENGTH(X2, x2) | 55 DECLARE_ANIMATED_LENGTH(X2, x2) |
| 54 DECLARE_ANIMATED_LENGTH(Y2, y2) | 56 DECLARE_ANIMATED_LENGTH(Y2, y2) |
| 55 END_DECLARE_ANIMATED_PROPERTIES | 57 END_DECLARE_ANIMATED_PROPERTIES |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 } // namespace WebCore | 60 } // namespace WebCore |
| 59 | 61 |
| 60 #endif // ENABLE(SVG) | 62 #endif // ENABLE(SVG) |
| 61 #endif | 63 #endif |
| OLD | NEW |