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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md 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/LayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
index ecf8a4da3d103c1dfb1cfbcd4fce737dc4f945c6..28cc67ebce20c656fb4fb2fb2d076b6bb0ae4fb1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -598,13 +598,13 @@ static void write(TextStream& ts,
else
scrollableArea = layer.getScrollableArea();
- DoublePoint adjustedScrollOffset =
- scrollableArea->scrollPositionDouble() +
- toDoubleSize(scrollableArea->scrollOrigin());
- if (adjustedScrollOffset.x())
- ts << " scrollX " << adjustedScrollOffset.x();
- if (adjustedScrollOffset.y())
- ts << " scrollY " << adjustedScrollOffset.y();
+ ScrollOffset adjustedScrollOffset =
+ scrollableArea->scrollOffset() +
+ toFloatSize(scrollableArea->scrollOrigin());
+ if (adjustedScrollOffset.width())
+ ts << " scrollX " << adjustedScrollOffset.width();
+ if (adjustedScrollOffset.height())
+ ts << " scrollY " << adjustedScrollOffset.height();
if (layer.layoutBox() &&
layer.layoutBox()->pixelSnappedClientWidth() !=
layer.layoutBox()->pixelSnappedScrollWidth())
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutPart.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698