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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImage.cpp

Issue 2821323002: Optimize offscreen animation: don't update paint properties/visual rects (Closed)
Patch Set: Add unit test Created 3 years, 8 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
Index: third_party/WebKit/Source/core/layout/LayoutImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
index 73d3a8ae1fad95c45ce1f893cd0f670be89f9aac..0ae3d202cf2ec5b6bea990455c627a83a5b4bbeb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -170,10 +170,10 @@ void LayoutImage::InvalidatePaintAndMarkForLayoutIfNeeded() {
return;
}
- if (ImageResource() && ImageResource()->MaybeAnimated())
- SetShouldDoFullPaintInvalidation(kPaintInvalidationDelayedFull);
- else
- SetShouldDoFullPaintInvalidation(kPaintInvalidationFull);
+ SetShouldDoFullPaintInvalidationWithoutGeometryChange(
+ ImageResource() && ImageResource()->MaybeAnimated()
+ ? kPaintInvalidationDelayedFull
+ : kPaintInvalidationFull);
// Tell any potential compositing layers that the image needs updating.
ContentChanged(kImageChanged);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698