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

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

Issue 566433002: Don't clip invalidation of composited scrolling contents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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: Source/core/rendering/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index 7fafa29ea302ac3326f9d2db3e4c2a0254b92f57..4ef201d6046e7e15002b0d2bbab97b7bf23fa602 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -874,7 +874,8 @@ void RenderBox::applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& p
flipForWritingMode(paintRect);
paintRect.move(-scrolledContentOffset()); // For overflow:auto/scroll/hidden.
- // Do not clip scroll layer contents to reduce the number of paint invalidations while scrolling.
+ // Do not clip scroll layer contents because the compositor expects the whole layer
+ // to be always invalidated in-time.
if (usesCompositedScrolling()) {
flipForWritingMode(paintRect);
return;

Powered by Google App Engine
This is Rietveld 408576698