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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.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
« no previous file with comments | « third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 9767274a2a6a1a2784f48e208702e6774aae7ad4..12b6c9518e1aec9c0973cdf4e6f11c0b7a25094c 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -520,7 +520,7 @@ int PaintLayerScrollableArea::visibleWidth() const {
}
IntSize PaintLayerScrollableArea::contentsSize() const {
- return IntSize(scrollWidth().toInt(), scrollHeight().toInt());
+ return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight());
}
IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const {
« no previous file with comments | « third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698