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

Side by Side Diff: Source/core/rendering/svg/SVGRenderSupport.cpp

Issue 802833003: Remove the SVG paint culling optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test for the moon lander. Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 const AffineTransform& transform = current->localToParentTransform(); 181 const AffineTransform& transform = current->localToParentTransform();
182 updateObjectBoundingBox(objectBoundingBox, objectBoundingBoxValid, curre nt, 182 updateObjectBoundingBox(objectBoundingBox, objectBoundingBoxValid, curre nt,
183 transform.mapRect(current->objectBoundingBox())); 183 transform.mapRect(current->objectBoundingBox()));
184 strokeBoundingBox.unite(transform.mapRect(current->paintInvalidationRect InLocalCoordinates())); 184 strokeBoundingBox.unite(transform.mapRect(current->paintInvalidationRect InLocalCoordinates()));
185 } 185 }
186 186
187 paintInvalidationBoundingBox = strokeBoundingBox; 187 paintInvalidationBoundingBox = strokeBoundingBox;
188 } 188 }
189 189
190 bool SVGRenderSupport::paintInfoIntersectsPaintInvalidationRect(const FloatRect& localPaintInvalidationRect, const AffineTransform& localTransform, const PaintI nfo& paintInfo)
191 {
192 return localTransform.mapRect(localPaintInvalidationRect).intersects(paintIn fo.rect);
193 }
194
195 const RenderSVGRoot* SVGRenderSupport::findTreeRootObject(const RenderObject* st art) 190 const RenderSVGRoot* SVGRenderSupport::findTreeRootObject(const RenderObject* st art)
196 { 191 {
197 while (start && !start->isSVGRoot()) 192 while (start && !start->isSVGRoot())
198 start = start->parent(); 193 start = start->parent();
199 194
200 ASSERT(start); 195 ASSERT(start);
201 ASSERT(start->isSVGRoot()); 196 ASSERT(start->isSVGRoot());
202 return toRenderSVGRoot(start); 197 return toRenderSVGRoot(start);
203 } 198 }
204 199
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 return false; 462 return false;
468 return willIsolateBlendingDescendantsForStyle(object->style()); 463 return willIsolateBlendingDescendantsForStyle(object->style());
469 } 464 }
470 465
471 bool SVGRenderSupport::isIsolationRequired(const RenderObject* object) 466 bool SVGRenderSupport::isIsolationRequired(const RenderObject* object)
472 { 467 {
473 return willIsolateBlendingDescendantsForObject(object) && object->hasNonIsol atedBlendingDescendants(); 468 return willIsolateBlendingDescendantsForObject(object) && object->hasNonIsol atedBlendingDescendants();
474 } 469 }
475 470
476 } 471 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderSupport.h ('k') | Source/core/rendering/svg/SVGRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698