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, 2007 Rob Buis <buis@kde.org> | 3 2004, 2005, 2007 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) 1999 Antti Koivisto (koivisto@kde.org) | 7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) | 8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) |
9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
10 Copyright (C) 2002 Apple Computer, Inc. | 10 Copyright (C) 2002 Apple Computer, Inc. |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
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 #include "config.h" | 28 #include "config.h" |
29 | 29 |
30 #include "core/rendering/style/SVGRenderStyleDefs.h" | 30 #include "core/rendering/style/SVGRenderStyleDefs.h" |
31 | 31 #include "core/rendering/style/RenderStyle.h" |
32 #include "core/rendering/style/SVGRenderStyle.h" | 32 #include "core/rendering/style/SVGRenderStyle.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 StyleFillData::StyleFillData() | 36 StyleFillData::StyleFillData() |
37 : opacity(SVGRenderStyle::initialFillOpacity()) | 37 : opacity(SVGRenderStyle::initialFillOpacity()) |
38 , paintType(SVGRenderStyle::initialFillPaintType()) | 38 , paintType(SVGRenderStyle::initialFillPaintType()) |
39 , paintColor(SVGRenderStyle::initialFillPaintColor()) | 39 , paintColor(SVGRenderStyle::initialFillPaintColor()) |
40 , paintUri(SVGRenderStyle::initialFillPaintUri()) | 40 , paintUri(SVGRenderStyle::initialFillPaintUri()) |
41 , visitedLinkPaintType(SVGRenderStyle::initialStrokePaintType()) | 41 , visitedLinkPaintType(SVGRenderStyle::initialStrokePaintType()) |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 { | 194 { |
195 } | 195 } |
196 | 196 |
197 bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
her) const | 197 bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
her) const |
198 { | 198 { |
199 return markerStart == other.markerStart | 199 return markerStart == other.markerStart |
200 && markerMid == other.markerMid | 200 && markerMid == other.markerMid |
201 && markerEnd == other.markerEnd; | 201 && markerEnd == other.markerEnd; |
202 } | 202 } |
203 | 203 |
| 204 StyleLayoutData::StyleLayoutData() |
| 205 : x(SVGRenderStyle::initialX()) |
| 206 , y(SVGRenderStyle::initialY()) |
| 207 { |
204 } | 208 } |
| 209 |
| 210 inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other) |
| 211 : RefCounted<StyleLayoutData>() |
| 212 , x(other.x) |
| 213 , y(other.y) |
| 214 { |
| 215 } |
| 216 |
| 217 PassRefPtr<StyleLayoutData> StyleLayoutData::copy() const |
| 218 { |
| 219 return adoptRef(new StyleLayoutData(*this)); |
| 220 } |
| 221 |
| 222 bool StyleLayoutData::operator==(const StyleLayoutData& other) const |
| 223 { |
| 224 return x == other.x |
| 225 && y == other.y; |
| 226 } |
| 227 |
| 228 } |
OLD | NEW |