OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 2004, 2005 Rob Buis <buis@kde.org> | 3 2004, 2005 Rob Buis <buis@kde.org> |
4 Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 | 5 |
6 Based on khtml code by: | 6 Based on khtml code by: |
7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org) | 7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org) |
8 (C) 2000 Antti Koivisto (koivisto@kde.org) | 8 (C) 2000 Antti Koivisto (koivisto@kde.org) |
9 (C) 2000-2003 Dirk Mueller (mueller@kde.org) | 9 (C) 2000-2003 Dirk Mueller (mueller@kde.org) |
10 (C) 2002-2003 Apple Computer, Inc. | 10 (C) 2002-2003 Apple Computer, Inc. |
(...skipping 11 matching lines...) Expand all Loading... |
22 You should have received a copy of the GNU Library General Public License | 22 You should have received a copy of the GNU Library General Public License |
23 along with this library; see the file COPYING.LIB. If not, write to | 23 along with this library; see the file COPYING.LIB. If not, write to |
24 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 Boston, MA 02110-1301, USA. | 25 Boston, MA 02110-1301, USA. |
26 */ | 26 */ |
27 | 27 |
28 #ifndef SVGLayoutStyleDefs_h | 28 #ifndef SVGLayoutStyleDefs_h |
29 #define SVGLayoutStyleDefs_h | 29 #define SVGLayoutStyleDefs_h |
30 | 30 |
31 #include "core/svg/SVGLength.h" | 31 #include "core/svg/SVGLength.h" |
32 #include "core/svg/SVGLengthList.h" | |
33 #include "platform/Length.h" | 32 #include "platform/Length.h" |
| 33 #include "platform/graphics/Color.h" |
34 #include "wtf/OwnPtr.h" | 34 #include "wtf/OwnPtr.h" |
35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
| 38 #include "wtf/RefVector.h" |
| 39 #include "wtf/text/WTFString.h" |
38 | 40 |
39 namespace blink { | 41 namespace blink { |
40 | 42 |
| 43 typedef RefVector<Length> SVGDashArray; |
| 44 |
41 enum SVGPaintType { | 45 enum SVGPaintType { |
42 SVG_PAINTTYPE_RGBCOLOR, | 46 SVG_PAINTTYPE_RGBCOLOR, |
43 SVG_PAINTTYPE_NONE, | 47 SVG_PAINTTYPE_NONE, |
44 SVG_PAINTTYPE_CURRENTCOLOR, | 48 SVG_PAINTTYPE_CURRENTCOLOR, |
45 SVG_PAINTTYPE_URI_NONE, | 49 SVG_PAINTTYPE_URI_NONE, |
46 SVG_PAINTTYPE_URI_CURRENTCOLOR, | 50 SVG_PAINTTYPE_URI_CURRENTCOLOR, |
47 SVG_PAINTTYPE_URI_RGBCOLOR, | 51 SVG_PAINTTYPE_URI_RGBCOLOR, |
48 SVG_PAINTTYPE_URI | 52 SVG_PAINTTYPE_URI |
49 }; | 53 }; |
50 | 54 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 bool operator!=(const StyleStrokeData& other) const | 159 bool operator!=(const StyleStrokeData& other) const |
156 { | 160 { |
157 return !(*this == other); | 161 return !(*this == other); |
158 } | 162 } |
159 | 163 |
160 float opacity; | 164 float opacity; |
161 float miterLimit; | 165 float miterLimit; |
162 | 166 |
163 RefPtrWillBePersistent<SVGLength> width; | 167 RefPtrWillBePersistent<SVGLength> width; |
164 Length dashOffset; | 168 Length dashOffset; |
165 RefPtrWillBePersistent<SVGLengthList> dashArray; | 169 RefPtr<SVGDashArray> dashArray; |
166 | 170 |
167 SVGPaintType paintType; | 171 SVGPaintType paintType; |
168 Color paintColor; | 172 Color paintColor; |
169 String paintUri; | 173 String paintUri; |
170 SVGPaintType visitedLinkPaintType; | 174 SVGPaintType visitedLinkPaintType; |
171 Color visitedLinkPaintColor; | 175 Color visitedLinkPaintColor; |
172 String visitedLinkPaintUri; | 176 String visitedLinkPaintUri; |
173 | 177 |
174 private: | 178 private: |
175 StyleStrokeData(); | 179 StyleStrokeData(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 Length rx; | 279 Length rx; |
276 Length ry; | 280 Length ry; |
277 private: | 281 private: |
278 StyleLayoutData(); | 282 StyleLayoutData(); |
279 StyleLayoutData(const StyleLayoutData&); | 283 StyleLayoutData(const StyleLayoutData&); |
280 }; | 284 }; |
281 | 285 |
282 } // namespace blink | 286 } // namespace blink |
283 | 287 |
284 #endif // SVGLayoutStyleDefs_h | 288 #endif // SVGLayoutStyleDefs_h |
OLD | NEW |