Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: Source/core/layout/style/SVGLayoutStyle.cpp

Issue 933953003: Move the remaining rendering/svg/RenderSVG* files to layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/PaintInvalidationState.cpp ('k') | Source/core/layout/svg/LayoutSVGBlock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/layout/PaintInvalidationState.cpp ('k') | Source/core/layout/svg/LayoutSVGBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698