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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 String paintUri; | 140 String paintUri; |
141 SVGPaintType visitedLinkPaintType; | 141 SVGPaintType visitedLinkPaintType; |
142 Color visitedLinkPaintColor; | 142 Color visitedLinkPaintColor; |
143 String visitedLinkPaintUri; | 143 String visitedLinkPaintUri; |
144 | 144 |
145 private: | 145 private: |
146 StyleFillData(); | 146 StyleFillData(); |
147 StyleFillData(const StyleFillData&); | 147 StyleFillData(const StyleFillData&); |
148 }; | 148 }; |
149 | 149 |
150 class UnzoomedLength { | |
151 DISALLOW_NEW(); | |
152 | |
153 public: | |
154 explicit UnzoomedLength(const Length& length) : m_length(length) {} | |
155 | |
156 bool isZero() const { return m_length.isZero(); } | |
157 | |
158 bool operator==(const UnzoomedLength& other) const { | |
159 return m_length == other.m_length; | |
160 } | |
161 bool operator!=(const UnzoomedLength& other) const { | |
162 return !operator==(other); | |
163 } | |
164 | |
165 const Length& length() const { return m_length; } | |
166 | |
167 private: | |
168 Length m_length; | |
169 }; | |
170 | |
171 class CORE_EXPORT StyleStrokeData : public RefCounted<StyleStrokeData> { | 150 class CORE_EXPORT StyleStrokeData : public RefCounted<StyleStrokeData> { |
172 public: | 151 public: |
173 static PassRefPtr<StyleStrokeData> create() { | 152 static PassRefPtr<StyleStrokeData> create() { |
174 return adoptRef(new StyleStrokeData); | 153 return adoptRef(new StyleStrokeData); |
175 } | 154 } |
176 | 155 |
177 PassRefPtr<StyleStrokeData> copy() const { | 156 PassRefPtr<StyleStrokeData> copy() const { |
178 return adoptRef(new StyleStrokeData(*this)); | 157 return adoptRef(new StyleStrokeData(*this)); |
179 } | 158 } |
180 | 159 |
181 bool operator==(const StyleStrokeData&) const; | 160 bool operator==(const StyleStrokeData&) const; |
182 bool operator!=(const StyleStrokeData& other) const { | 161 bool operator!=(const StyleStrokeData& other) const { |
183 return !(*this == other); | 162 return !(*this == other); |
184 } | 163 } |
185 | 164 |
186 float opacity; | 165 float opacity; |
187 float miterLimit; | 166 float miterLimit; |
188 | 167 |
189 UnzoomedLength width; | |
190 Length dashOffset; | 168 Length dashOffset; |
191 RefPtr<SVGDashArray> dashArray; | 169 RefPtr<SVGDashArray> dashArray; |
192 | 170 |
193 SVGPaintType paintType; | 171 SVGPaintType paintType; |
194 Color paintColor; | 172 Color paintColor; |
195 String paintUri; | 173 String paintUri; |
196 SVGPaintType visitedLinkPaintType; | 174 SVGPaintType visitedLinkPaintType; |
197 Color visitedLinkPaintColor; | 175 Color visitedLinkPaintColor; |
198 String visitedLinkPaintUri; | 176 String visitedLinkPaintUri; |
199 | 177 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 Length ry; | 296 Length ry; |
319 | 297 |
320 private: | 298 private: |
321 StyleGeometryData(); | 299 StyleGeometryData(); |
322 StyleGeometryData(const StyleGeometryData&); | 300 StyleGeometryData(const StyleGeometryData&); |
323 }; | 301 }; |
324 | 302 |
325 } // namespace blink | 303 } // namespace blink |
326 | 304 |
327 #endif // SVGComputedStyleDefs_h | 305 #endif // SVGComputedStyleDefs_h |
OLD | NEW |