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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 , visitedLinkPaintType(SVGLayoutStyle::initialStrokePaintType()) | 78 , visitedLinkPaintType(SVGLayoutStyle::initialStrokePaintType()) |
79 , visitedLinkPaintColor(SVGLayoutStyle::initialStrokePaintColor()) | 79 , visitedLinkPaintColor(SVGLayoutStyle::initialStrokePaintColor()) |
80 , visitedLinkPaintUri(SVGLayoutStyle::initialStrokePaintUri()) | 80 , visitedLinkPaintUri(SVGLayoutStyle::initialStrokePaintUri()) |
81 { | 81 { |
82 } | 82 } |
83 | 83 |
84 StyleStrokeData::StyleStrokeData(const StyleStrokeData& other) | 84 StyleStrokeData::StyleStrokeData(const StyleStrokeData& other) |
85 : RefCounted<StyleStrokeData>() | 85 : RefCounted<StyleStrokeData>() |
86 , opacity(other.opacity) | 86 , opacity(other.opacity) |
87 , miterLimit(other.miterLimit) | 87 , miterLimit(other.miterLimit) |
88 , width(other.width->clone()) | 88 , width(other.width) |
89 , dashOffset(other.dashOffset) | 89 , dashOffset(other.dashOffset) |
90 , dashArray(other.dashArray) | 90 , dashArray(other.dashArray) |
91 , paintType(other.paintType) | 91 , paintType(other.paintType) |
92 , paintColor(other.paintColor) | 92 , paintColor(other.paintColor) |
93 , paintUri(other.paintUri) | 93 , paintUri(other.paintUri) |
94 , visitedLinkPaintType(other.visitedLinkPaintType) | 94 , visitedLinkPaintType(other.visitedLinkPaintType) |
95 , visitedLinkPaintColor(other.visitedLinkPaintColor) | 95 , visitedLinkPaintColor(other.visitedLinkPaintColor) |
96 , visitedLinkPaintUri(other.visitedLinkPaintUri) | 96 , visitedLinkPaintUri(other.visitedLinkPaintUri) |
97 { | 97 { |
98 } | 98 } |
99 | 99 |
100 bool StyleStrokeData::operator==(const StyleStrokeData& other) const | 100 bool StyleStrokeData::operator==(const StyleStrokeData& other) const |
101 { | 101 { |
102 return *width == *other.width | 102 return width == other.width |
103 && opacity == other.opacity | 103 && opacity == other.opacity |
104 && miterLimit == other.miterLimit | 104 && miterLimit == other.miterLimit |
105 && dashOffset == other.dashOffset | 105 && dashOffset == other.dashOffset |
106 && *dashArray == *other.dashArray | 106 && *dashArray == *other.dashArray |
107 && paintType == other.paintType | 107 && paintType == other.paintType |
108 && paintColor == other.paintColor | 108 && paintColor == other.paintColor |
109 && paintUri == other.paintUri | 109 && paintUri == other.paintUri |
110 && visitedLinkPaintType == other.visitedLinkPaintType | 110 && visitedLinkPaintType == other.visitedLinkPaintType |
111 && visitedLinkPaintColor == other.visitedLinkPaintColor | 111 && visitedLinkPaintColor == other.visitedLinkPaintColor |
112 && visitedLinkPaintUri == other.visitedLinkPaintUri; | 112 && visitedLinkPaintUri == other.visitedLinkPaintUri; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 224 |
225 bool StyleLayoutData::operator==(const StyleLayoutData& other) const | 225 bool StyleLayoutData::operator==(const StyleLayoutData& other) const |
226 { | 226 { |
227 return x == other.x | 227 return x == other.x |
228 && y == other.y | 228 && y == other.y |
229 && rx == other.rx | 229 && rx == other.rx |
230 && ry == other.ry; | 230 && ry == other.ry; |
231 } | 231 } |
232 | 232 |
233 } | 233 } |
OLD | NEW |