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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 { | 193 { |
194 } | 194 } |
195 | 195 |
196 bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
her) const | 196 bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
her) const |
197 { | 197 { |
198 return markerStart == other.markerStart | 198 return markerStart == other.markerStart |
199 && markerMid == other.markerMid | 199 && markerMid == other.markerMid |
200 && markerEnd == other.markerEnd; | 200 && markerEnd == other.markerEnd; |
201 } | 201 } |
202 | 202 |
203 StyleLayoutData::StyleLayoutData() | 203 StyleGeometryData::StyleGeometryData() |
204 : d(SVGComputedStyle::initialD()) | 204 : d(SVGComputedStyle::initialD()) |
205 , cx(SVGComputedStyle::initialCx()) | 205 , cx(SVGComputedStyle::initialCx()) |
206 , cy(SVGComputedStyle::initialCy()) | 206 , cy(SVGComputedStyle::initialCy()) |
207 , x(SVGComputedStyle::initialX()) | 207 , x(SVGComputedStyle::initialX()) |
208 , y(SVGComputedStyle::initialY()) | 208 , y(SVGComputedStyle::initialY()) |
209 , r(SVGComputedStyle::initialR()) | 209 , r(SVGComputedStyle::initialR()) |
210 , rx(SVGComputedStyle::initialRx()) | 210 , rx(SVGComputedStyle::initialRx()) |
211 , ry(SVGComputedStyle::initialRy()) | 211 , ry(SVGComputedStyle::initialRy()) |
212 { | 212 { |
213 } | 213 } |
214 | 214 |
215 inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other) | 215 inline StyleGeometryData::StyleGeometryData(const StyleGeometryData& other) |
216 : RefCounted<StyleLayoutData>() | 216 : RefCounted<StyleGeometryData>() |
217 , d(other.d) | 217 , d(other.d) |
218 , cx(other.cx) | 218 , cx(other.cx) |
219 , cy(other.cy) | 219 , cy(other.cy) |
220 , x(other.x) | 220 , x(other.x) |
221 , y(other.y) | 221 , y(other.y) |
222 , r(other.r) | 222 , r(other.r) |
223 , rx(other.rx) | 223 , rx(other.rx) |
224 , ry(other.ry) | 224 , ry(other.ry) |
225 { | 225 { |
226 } | 226 } |
227 | 227 |
228 PassRefPtr<StyleLayoutData> StyleLayoutData::copy() const | 228 PassRefPtr<StyleGeometryData> StyleGeometryData::copy() const |
229 { | 229 { |
230 return adoptRef(new StyleLayoutData(*this)); | 230 return adoptRef(new StyleGeometryData(*this)); |
231 } | 231 } |
232 | 232 |
233 bool StyleLayoutData::operator==(const StyleLayoutData& other) const | 233 bool StyleGeometryData::operator==(const StyleGeometryData& other) const |
234 { | 234 { |
235 return x == other.x | 235 return x == other.x |
236 && y == other.y | 236 && y == other.y |
237 && r == other.r | 237 && r == other.r |
238 && rx == other.rx | 238 && rx == other.rx |
239 && ry == other.ry | 239 && ry == other.ry |
240 && cx == other.cx | 240 && cx == other.cx |
241 && cy == other.cy | 241 && cy == other.cy |
242 && dataEquivalent(d, other.d); | 242 && dataEquivalent(d, other.d); |
243 } | 243 } |
244 | 244 |
245 } // namespace blink | 245 } // namespace blink |
OLD | NEW |