| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } else if (diffNeedsPaintInvalidation(other)) { | 123 } else if (diffNeedsPaintInvalidation(other)) { |
| 124 styleDifference.setNeedsPaintInvalidationObject(); | 124 styleDifference.setNeedsPaintInvalidationObject(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 return styleDifference; | 127 return styleDifference; |
| 128 } | 128 } |
| 129 | 129 |
| 130 bool SVGComputedStyle::diffNeedsLayoutAndPaintInvalidation( | 130 bool SVGComputedStyle::diffNeedsLayoutAndPaintInvalidation( |
| 131 const SVGComputedStyle* other) const { | 131 const SVGComputedStyle* other) const { |
| 132 // If resources change, we need a relayout, as the presence of resources | 132 // If resources change, we need a relayout, as the presence of resources |
| 133 // influences the paint invalidation rect. | 133 // influences the visual rect. |
| 134 if (resources != other->resources) | 134 if (resources != other->resources) |
| 135 return true; | 135 return true; |
| 136 | 136 |
| 137 // If markers change, we need a relayout, as marker boundaries are cached in | 137 // If markers change, we need a relayout, as marker boundaries are cached in |
| 138 // LayoutSVGPath. | 138 // LayoutSVGPath. |
| 139 if (inheritedResources != other->inheritedResources) | 139 if (inheritedResources != other->inheritedResources) |
| 140 return true; | 140 return true; |
| 141 | 141 |
| 142 // All text related properties influence layout. | 142 // All text related properties influence layout. |
| 143 if (svg_inherited_flags.textAnchor != other->svg_inherited_flags.textAnchor || | 143 if (svg_inherited_flags.textAnchor != other->svg_inherited_flags.textAnchor || |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL); | 270 pt = paintOrderSequence(PT_MARKERS, PT_STROKE, PT_FILL); |
| 271 break; | 271 break; |
| 272 } | 272 } |
| 273 | 273 |
| 274 pt = | 274 pt = |
| 275 (pt >> (kPaintOrderBitwidth * index)) & ((1u << kPaintOrderBitwidth) - 1); | 275 (pt >> (kPaintOrderBitwidth * index)) & ((1u << kPaintOrderBitwidth) - 1); |
| 276 return (EPaintOrderType)pt; | 276 return (EPaintOrderType)pt; |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace blink | 279 } // namespace blink |
| OLD | NEW |