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

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

Issue 2416453006: Use the pixelSnappedScrollWidth/Height for contentsSize (Closed)
Patch Set: Spv2 expectations 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 a088bbb7cde042d048121cae85226aec082bba84..8a84bb055d86c9b4bfe9f147a63bdde1442615f0 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1256,8 +1256,8 @@ void CompositedLayerMapping::updateScrollingLayerGeometry(
bool overflowClipRectOffsetChanged =
oldScrollingLayerOffset != m_scrollingLayer->offsetFromLayoutObject();
- IntSize scrollSize(layoutBox->scrollWidth().toInt(),
- layoutBox->scrollHeight().toInt());
+ IntSize scrollSize(layoutBox->pixelSnappedScrollWidth(),
+ layoutBox->pixelSnappedScrollHeight());
if (scrollSize != m_scrollingContentsLayer->size() ||
overflowClipRectOffsetChanged)
m_scrollingContentsLayer->setNeedsDisplay();

Powered by Google App Engine
This is Rietveld 408576698