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

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

Issue 478433002: Avoid RenderObject::paintInvalidationForWholeRenderer() if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations Created 6 years, 4 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 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org>
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Eventually notify parent resources, that we've changed. 212 // Eventually notify parent resources, that we've changed.
213 RenderSVGResource::markForLayoutAndParentResourceInvalidation(this, false); 213 RenderSVGResource::markForLayoutAndParentResourceInvalidation(this, false);
214 214
215 // Update the SVGImageCache sizeAndScales entry in case image loading finish ed after layout. 215 // Update the SVGImageCache sizeAndScales entry in case image loading finish ed after layout.
216 // (https://bugs.webkit.org/show_bug.cgi?id=99489) 216 // (https://bugs.webkit.org/show_bug.cgi?id=99489)
217 m_objectBoundingBox = FloatRect(); 217 m_objectBoundingBox = FloatRect();
218 updateImageViewport(); 218 updateImageViewport();
219 219
220 invalidateBufferedForeground(); 220 invalidateBufferedForeground();
221 221
222 paintInvalidationForWholeRenderer(); 222 setShouldDoFullPaintInvalidation(true);
223 } 223 }
224 224
225 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*) const 225 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*) const
226 { 226 {
227 // this is called from paint() after the localTransform has already been app lied 227 // this is called from paint() after the localTransform has already been app lied
228 IntRect contentRect = enclosingIntRect(paintInvalidationRectInLocalCoordinat es()); 228 IntRect contentRect = enclosingIntRect(paintInvalidationRectInLocalCoordinat es());
229 if (!contentRect.isEmpty()) 229 if (!contentRect.isEmpty())
230 rects.append(contentRect); 230 rects.append(contentRect);
231 } 231 }
232 232
233 } // namespace blink 233 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderWidget.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698