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, 2010 Rob Buis <buis@kde.org> | 3 2004, 2005, 2010 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 return true; | 168 return true; |
169 | 169 |
170 // Some stroke properties, requires relayouts, as the cached stroke boundari
es need to be recalculated. | 170 // Some stroke properties, requires relayouts, as the cached stroke boundari
es need to be recalculated. |
171 if (stroke.get() != other->stroke.get()) { | 171 if (stroke.get() != other->stroke.get()) { |
172 if (*stroke->width != *other->stroke->width | 172 if (*stroke->width != *other->stroke->width |
173 || stroke->paintType != other->stroke->paintType | 173 || stroke->paintType != other->stroke->paintType |
174 || stroke->paintColor != other->stroke->paintColor | 174 || stroke->paintColor != other->stroke->paintColor |
175 || stroke->paintUri != other->stroke->paintUri | 175 || stroke->paintUri != other->stroke->paintUri |
176 || stroke->miterLimit != other->stroke->miterLimit | 176 || stroke->miterLimit != other->stroke->miterLimit |
177 || *stroke->dashArray != *other->stroke->dashArray | 177 || *stroke->dashArray != *other->stroke->dashArray |
178 || *stroke->dashOffset != *other->stroke->dashOffset | 178 || stroke->dashOffset != other->stroke->dashOffset |
179 || stroke->visitedLinkPaintColor != other->stroke->visitedLinkPaintC
olor | 179 || stroke->visitedLinkPaintColor != other->stroke->visitedLinkPaintC
olor |
180 || stroke->visitedLinkPaintUri != other->stroke->visitedLinkPaintUri | 180 || stroke->visitedLinkPaintUri != other->stroke->visitedLinkPaintUri |
181 || stroke->visitedLinkPaintType != other->stroke->visitedLinkPaintTy
pe) | 181 || stroke->visitedLinkPaintType != other->stroke->visitedLinkPaintTy
pe) |
182 return true; | 182 return true; |
183 } | 183 } |
184 | 184 |
185 // The x, y, rx and ry properties require a re-layout. | 185 // The x, y, rx and ry properties require a re-layout. |
186 if (layout.get() != other->layout.get()) { | 186 if (layout.get() != other->layout.get()) { |
187 if (layout->x != other->layout->x | 187 if (layout->x != other->layout->x |
188 || layout->y != other->layout->y | 188 || layout->y != other->layout->y |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 240 } |
241 | 241 |
242 EPaintOrderType SVGLayoutStyle::paintOrderType(unsigned index) const | 242 EPaintOrderType SVGLayoutStyle::paintOrderType(unsigned index) const |
243 { | 243 { |
244 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); | 244 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); |
245 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); | 245 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); |
246 return (EPaintOrderType)pt; | 246 return (EPaintOrderType)pt; |
247 } | 247 } |
248 | 248 |
249 } | 249 } |
OLD | NEW |