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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2442833002: Fix the overflow clip rect rounding for overflow scrolling (Closed)
Patch Set: Fix Slimming Paint v2 Created 4 years, 2 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/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index 8a84bb055d86c9b4bfe9f147a63bdde1442615f0..4bd1cbc1df76a397de238537cb9e9a3b6c7a5af9 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1234,7 +1234,7 @@ void CompositedLayerMapping::updateScrollingLayerGeometry(
ASSERT(m_scrollingContentsLayer);
LayoutBox* layoutBox = toLayoutBox(layoutObject());
IntRect overflowClipRect =
- enclosingIntRect(layoutBox->overflowClipRect(LayoutPoint()));
+ pixelSnappedIntRect(layoutBox->overflowClipRect(LayoutPoint()));
FloatPoint scrollPosition =
m_owningLayer.getScrollableArea()->scrollPosition();
m_scrollingLayer->setPosition(FloatPoint(

Powered by Google App Engine
This is Rietveld 408576698