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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 // If fill changes, we just need to issue paint invalidations. Fill boundari
es are not influenced by this, only by the Path, that LayoutSVGPath contains. | 208 // If fill changes, we just need to issue paint invalidations. Fill boundari
es are not influenced by this, only by the Path, that LayoutSVGPath contains. |
209 if (fill.get() != other->fill.get()) { | 209 if (fill.get() != other->fill.get()) { |
210 if (fill->paintType != other->fill->paintType | 210 if (fill->paintType != other->fill->paintType |
211 || fill->paintColor != other->fill->paintColor | 211 || fill->paintColor != other->fill->paintColor |
212 || fill->paintUri != other->fill->paintUri | 212 || fill->paintUri != other->fill->paintUri |
213 || fill->opacity != other->fill->opacity) | 213 || fill->opacity != other->fill->opacity) |
214 return true; | 214 return true; |
215 } | 215 } |
216 | 216 |
217 // If gradient stops change, we just need to issue paint invalidations. Styl
e updates are already handled through RenderSVGGradientSTop. | 217 // If gradient stops change, we just need to issue paint invalidations. Styl
e updates are already handled through LayoutSVGGradientSTop. |
218 if (stops != other->stops) | 218 if (stops != other->stops) |
219 return true; | 219 return true; |
220 | 220 |
221 // Changes of these flags only cause paint invalidations. | 221 // Changes of these flags only cause paint invalidations. |
222 if (svg_inherited_flags._colorRendering != other->svg_inherited_flags._color
Rendering | 222 if (svg_inherited_flags._colorRendering != other->svg_inherited_flags._color
Rendering |
223 || svg_inherited_flags._shapeRendering != other->svg_inherited_flags._sh
apeRendering | 223 || svg_inherited_flags._shapeRendering != other->svg_inherited_flags._sh
apeRendering |
224 || svg_inherited_flags._clipRule != other->svg_inherited_flags._clipRule | 224 || svg_inherited_flags._clipRule != other->svg_inherited_flags._clipRule |
225 || svg_inherited_flags._fillRule != other->svg_inherited_flags._fillRule | 225 || svg_inherited_flags._fillRule != other->svg_inherited_flags._fillRule |
226 || svg_inherited_flags._colorInterpolation != other->svg_inherited_flags
._colorInterpolation | 226 || svg_inherited_flags._colorInterpolation != other->svg_inherited_flags
._colorInterpolation |
227 || svg_inherited_flags._colorInterpolationFilters != other->svg_inherite
d_flags._colorInterpolationFilters | 227 || svg_inherited_flags._colorInterpolationFilters != other->svg_inherite
d_flags._colorInterpolationFilters |
(...skipping 10 matching lines...) Expand all Loading... |
238 } | 238 } |
239 | 239 |
240 EPaintOrderType SVGLayoutStyle::paintOrderType(unsigned index) const | 240 EPaintOrderType SVGLayoutStyle::paintOrderType(unsigned index) const |
241 { | 241 { |
242 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); | 242 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); |
243 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); | 243 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint
OrderBitwidth) - 1); |
244 return (EPaintOrderType)pt; | 244 return (EPaintOrderType)pt; |
245 } | 245 } |
246 | 246 |
247 } | 247 } |
OLD | NEW |