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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.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/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 5412a7958e67e1d03fd707b721ea9e5f6f155612..21ce995d0f67a222d0160e4a6e62a6fa861c49a5 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -371,8 +371,7 @@ void PointerEventManager::dispatchTouchPointerEvents(
FloatPoint pagePoint = touchInfo.targetFrame->view()->rootFrameToContents(
touchInfo.point.pos());
float scaleFactor = 1.0f / touchInfo.targetFrame->pageZoomFactor();
- FloatPoint scrollPosition =
- touchInfo.targetFrame->view()->scrollPosition();
+ FloatPoint scrollPosition(touchInfo.targetFrame->view()->scrollOffset());
FloatPoint framePoint = pagePoint.scaledBy(scaleFactor);
framePoint.moveBy(scrollPosition.scaledBy(-scaleFactor));
PointerEvent* pointerEvent = m_pointerEventFactory.create(
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandlerTest.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698