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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 protected: | 89 protected: |
90 SVGGradientElement(const QualifiedName&, Document*); | 90 SVGGradientElement(const QualifiedName&, Document&); |
91 | 91 |
92 bool isSupportedAttribute(const QualifiedName&); | 92 bool isSupportedAttribute(const QualifiedName&); |
93 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 93 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
94 virtual void svgAttributeChanged(const QualifiedName&); | 94 virtual void svgAttributeChanged(const QualifiedName&); |
95 | 95 |
96 private: | 96 private: |
97 virtual bool needsPendingResourceHandling() const { return false; } | 97 virtual bool needsPendingResourceHandling() const { return false; } |
98 | 98 |
99 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 99 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
100 | 100 |
101 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGradientElement) | 101 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGradientElement) |
102 DECLARE_ANIMATED_ENUMERATION(SpreadMethod, spreadMethod, SVGSpreadMethod
Type) | 102 DECLARE_ANIMATED_ENUMERATION(SpreadMethod, spreadMethod, SVGSpreadMethod
Type) |
103 DECLARE_ANIMATED_ENUMERATION(GradientUnits, gradientUnits, SVGUnitTypes:
:SVGUnitType) | 103 DECLARE_ANIMATED_ENUMERATION(GradientUnits, gradientUnits, SVGUnitTypes:
:SVGUnitType) |
104 DECLARE_ANIMATED_TRANSFORM_LIST(GradientTransform, gradientTransform) | 104 DECLARE_ANIMATED_TRANSFORM_LIST(GradientTransform, gradientTransform) |
105 DECLARE_ANIMATED_STRING(Href, href) | 105 DECLARE_ANIMATED_STRING(Href, href) |
106 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 106 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
107 END_DECLARE_ANIMATED_PROPERTIES | 107 END_DECLARE_ANIMATED_PROPERTIES |
108 }; | 108 }; |
109 | 109 |
110 inline SVGGradientElement* toSVGGradientElement(Node* node) | 110 inline SVGGradientElement* toSVGGradientElement(Node* node) |
111 { | 111 { |
112 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->hasTagName(SVGNames::radial
GradientTag) || node->hasTagName(SVGNames::linearGradientTag))); | 112 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->hasTagName(SVGNames::radial
GradientTag) || node->hasTagName(SVGNames::linearGradientTag))); |
113 return static_cast<SVGGradientElement*>(node); | 113 return static_cast<SVGGradientElement*>(node); |
114 } | 114 } |
115 | 115 |
116 } // namespace WebCore | 116 } // namespace WebCore |
117 | 117 |
118 #endif | 118 #endif |
OLD | NEW |