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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 207 }
208 } 208 }
209 } 209 }
210 210
211 void RenderSVGResource::markForLayoutAndParentResourceInvalidation(RenderObject* object, bool needsLayout) 211 void RenderSVGResource::markForLayoutAndParentResourceInvalidation(RenderObject* object, bool needsLayout)
212 { 212 {
213 ASSERT(object); 213 ASSERT(object);
214 ASSERT(object->node()); 214 ASSERT(object->node());
215 215
216 if (needsLayout && !object->documentBeingDestroyed()) 216 if (needsLayout && !object->documentBeingDestroyed())
217 object->setNeedsLayoutAndFullRepaint(); 217 object->setNeedsLayoutAndFullPaintInvalidation();
218 218
219 removeFromCacheAndInvalidateDependencies(object, needsLayout); 219 removeFromCacheAndInvalidateDependencies(object, needsLayout);
220 220
221 // Invalidate resources in ancestor chain, if needed. 221 // Invalidate resources in ancestor chain, if needed.
222 RenderObject* current = object->parent(); 222 RenderObject* current = object->parent();
223 while (current) { 223 while (current) {
224 removeFromCacheAndInvalidateDependencies(current, needsLayout); 224 removeFromCacheAndInvalidateDependencies(current, needsLayout);
225 225
226 if (current->isSVGResourceContainer()) { 226 if (current->isSVGResourceContainer()) {
227 // This will process the rest of the ancestors. 227 // This will process the rest of the ancestors.
228 toRenderSVGResourceContainer(current)->removeAllClientsFromCache(); 228 toRenderSVGResourceContainer(current)->removeAllClientsFromCache();
229 break; 229 break;
230 } 230 }
231 231
232 current = current->parent(); 232 current = current->parent();
233 } 233 }
234 } 234 }
235 235
236 } 236 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698