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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 public SVGExternalResourcesRequired { | 78 public SVGExternalResourcesRequired { |
79 public: | 79 public: |
80 enum { | 80 enum { |
81 SVG_SPREADMETHOD_UNKNOWN = SVGSpreadMethodUnknown, | 81 SVG_SPREADMETHOD_UNKNOWN = SVGSpreadMethodUnknown, |
82 SVG_SPREADMETHOD_PAD = SVGSpreadMethodReflect, | 82 SVG_SPREADMETHOD_PAD = SVGSpreadMethodReflect, |
83 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat, | 83 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat, |
84 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown | 84 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown |
85 }; | 85 }; |
86 | 86 |
87 Vector<Gradient::ColorStop> buildStops(); | 87 Vector<Gradient::ColorStop> buildStops(); |
88 | 88 |
| 89 virtual void accept(Visitor* visitor) const OVERRIDE { SVGStyledElement::acc
ept(visitor); } |
| 90 |
89 protected: | 91 protected: |
90 SVGGradientElement(const QualifiedName&, const Handle<Document>&); | 92 SVGGradientElement(const QualifiedName&, const Handle<Document>&); |
91 | 93 |
92 bool isSupportedAttribute(const QualifiedName&); | 94 bool isSupportedAttribute(const QualifiedName&); |
93 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 95 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
94 virtual void svgAttributeChanged(const QualifiedName&); | 96 virtual void svgAttributeChanged(const QualifiedName&); |
95 | 97 |
96 private: | 98 private: |
97 virtual bool needsPendingResourceHandling() const { return false; } | 99 virtual bool needsPendingResourceHandling() const { return false; } |
98 | 100 |
99 virtual void childrenChanged(bool changedByParser = false, const Handle<Node
>& beforeChange = nullptr, const Handle<Node>& afterChange = nullptr, int childC
ountDelta = 0); | 101 virtual void childrenChanged(bool changedByParser = false, const Handle<Node
>& beforeChange = nullptr, const Handle<Node>& afterChange = nullptr, int childC
ountDelta = 0); |
100 | 102 |
101 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGradientElement) | 103 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGradientElement) |
102 DECLARE_ANIMATED_ENUMERATION(SpreadMethod, spreadMethod, SVGSpreadMethod
Type) | 104 DECLARE_ANIMATED_ENUMERATION(SpreadMethod, spreadMethod, SVGSpreadMethod
Type) |
103 DECLARE_ANIMATED_ENUMERATION(GradientUnits, gradientUnits, SVGUnitTypes:
:SVGUnitType) | 105 DECLARE_ANIMATED_ENUMERATION(GradientUnits, gradientUnits, SVGUnitTypes:
:SVGUnitType) |
104 DECLARE_ANIMATED_TRANSFORM_LIST(GradientTransform, gradientTransform) | 106 DECLARE_ANIMATED_TRANSFORM_LIST(GradientTransform, gradientTransform) |
105 DECLARE_ANIMATED_STRING(Href, href) | 107 DECLARE_ANIMATED_STRING(Href, href) |
106 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 108 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
107 END_DECLARE_ANIMATED_PROPERTIES | 109 END_DECLARE_ANIMATED_PROPERTIES |
108 }; | 110 }; |
109 | 111 |
110 } // namespace WebCore | 112 } // namespace WebCore |
111 | 113 |
112 #endif // ENABLE(SVG) | 114 #endif // ENABLE(SVG) |
113 #endif | 115 #endif |
OLD | NEW |