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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScope.cpp

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: 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/dom/TreeScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
index 9e5b5d89cf9e74d06ae9fb5347275a60f03c6ea4..23e5a10d0c43881b62778f790aa463726344db72 100644
--- a/third_party/WebKit/Source/core/dom/TreeScope.cpp
+++ b/third_party/WebKit/Source/core/dom/TreeScope.cpp
@@ -220,7 +220,7 @@ static bool pointWithScrollAndZoomIfPossible(const Document& document,
FloatPoint pointInDocument(point);
pointInDocument.scale(frame->pageZoomFactor(), frame->pageZoomFactor());
- pointInDocument.moveBy(frameView->scrollPosition());
+ pointInDocument.moveBy(FloatPoint(frameView->scrollOffset()));
bokan 2016/10/02 19:47:50 use move() instead, it takes a FloatSize
szager1 2016/10/05 07:43:36 Done.
IntPoint roundedPointInDocument = roundedIntPoint(pointInDocument);
if (!frameView->visibleContentRect().contains(roundedPointInDocument))

Powered by Google App Engine
This is Rietveld 408576698