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

Unified Diff: Source/core/rendering/RenderImage.cpp

Issue 458373003: Full invalidate <img> on resize (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline fast/repaint/list-marker-2.html 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/platform/win/fast/repaint/list-marker-2-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderImage.cpp
diff --git a/Source/core/rendering/RenderImage.cpp b/Source/core/rendering/RenderImage.cpp
index 45b147c43a02d549e3d8bcbe4f2c6408c280b823..11a4476e2d390244b2667bcc5d0a1c5f25d5fa98 100644
--- a/Source/core/rendering/RenderImage.cpp
+++ b/Source/core/rendering/RenderImage.cpp
@@ -551,8 +551,12 @@ void RenderImage::updateAltText()
void RenderImage::layout()
{
+ LayoutRect oldContentRect = replacedContentRect();
RenderReplaced::layout();
- updateInnerContentRect();
+ if (replacedContentRect() != oldContentRect) {
+ setShouldDoFullPaintInvalidation(true);
+ updateInnerContentRect();
+ }
}
bool RenderImage::updateImageLoadingPriorities()
« no previous file with comments | « LayoutTests/platform/win/fast/repaint/list-marker-2-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698