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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // If resources change, we need a relayout, as the presence of resources inf
luences the paint invalidation rect. | 147 // If resources change, we need a relayout, as the presence of resources inf
luences the paint invalidation rect. |
148 if (resources != other->resources) | 148 if (resources != other->resources) |
149 return true; | 149 return true; |
150 | 150 |
151 // If markers change, we need a relayout, as marker boundaries are cached in
LayoutSVGPath. | 151 // If markers change, we need a relayout, as marker boundaries are cached in
LayoutSVGPath. |
152 if (inheritedResources != other->inheritedResources) | 152 if (inheritedResources != other->inheritedResources) |
153 return true; | 153 return true; |
154 | 154 |
155 // All text related properties influence layout. | 155 // All text related properties influence layout. |
156 if (svg_inherited_flags._textAnchor != other->svg_inherited_flags._textAncho
r | 156 if (svg_inherited_flags._textAnchor != other->svg_inherited_flags._textAncho
r |
157 || svg_inherited_flags._glyphOrientationHorizontal != other->svg_inherit
ed_flags._glyphOrientationHorizontal | |
158 || svg_inherited_flags._glyphOrientationVertical != other->svg_inherited
_flags._glyphOrientationVertical | |
159 || svg_inherited_flags.dominantBaseline != other->svg_inherited_flags.do
minantBaseline | 157 || svg_inherited_flags.dominantBaseline != other->svg_inherited_flags.do
minantBaseline |
160 || svg_noninherited_flags.f._alignmentBaseline != other->svg_noninherite
d_flags.f._alignmentBaseline | 158 || svg_noninherited_flags.f._alignmentBaseline != other->svg_noninherite
d_flags.f._alignmentBaseline |
161 || svg_noninherited_flags.f._baselineShift != other->svg_noninherited_fl
ags.f._baselineShift) | 159 || svg_noninherited_flags.f._baselineShift != other->svg_noninherited_fl
ags.f._baselineShift) |
162 return true; | 160 return true; |
163 | 161 |
164 // Text related properties influence layout. | 162 // Text related properties influence layout. |
165 if (misc->baselineShiftValue != other->misc->baselineShiftValue) | 163 if (misc->baselineShiftValue != other->misc->baselineShiftValue) |
166 return true; | 164 return true; |
167 | 165 |
168 // These properties affect the cached stroke bounding box rects. | 166 // These properties affect the cached stroke bounding box rects. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 case PaintOrderMarkersStrokeFill: | 276 case PaintOrderMarkersStrokeFill: |
279 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL); | 277 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL); |
280 break; | 278 break; |
281 } | 279 } |
282 | 280 |
283 pt = (pt >> (kPaintOrderBitwidth*index)) & ((1u << kPaintOrderBitwidth) - 1)
; | 281 pt = (pt >> (kPaintOrderBitwidth*index)) & ((1u << kPaintOrderBitwidth) - 1)
; |
284 return (EPaintOrderType)pt; | 282 return (EPaintOrderType)pt; |
285 } | 283 } |
286 | 284 |
287 } | 285 } |
OLD | NEW |