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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScope.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/dom/TreeScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
index e31c183df8f75e7597dc434140835994dd0ce6a0..d058a499ad873914f2fdf335fc7f84236f50983d 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.move(frameView->scrollOffset());
IntPoint roundedPointInDocument = roundedIntPoint(pointInDocument);
if (!frameView->visibleContentRect().contains(roundedPointInDocument))
« no previous file with comments | « third_party/WebKit/Source/core/dom/Touch.cpp ('k') | third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698