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

Unified Diff: third_party/WebKit/Source/core/input/ScrollManager.cpp

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Fix nits Created 3 years, 11 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/ScrollManager.cpp
diff --git a/third_party/WebKit/Source/core/input/ScrollManager.cpp b/third_party/WebKit/Source/core/input/ScrollManager.cpp
index 0a5c306b0383dd87fcb8bb7e8ec4df734fc21617..12de4c6bf407d4ce9d98502b8c486828c6110822 100644
--- a/third_party/WebKit/Source/core/input/ScrollManager.cpp
+++ b/third_party/WebKit/Source/core/input/ScrollManager.cpp
@@ -506,11 +506,12 @@ bool ScrollManager::inResizeMode() const {
return m_resizeScrollableArea && m_resizeScrollableArea->inResizeMode();
}
-void ScrollManager::resize(const PlatformMouseEvent& evt) {
- if (evt.type() == PlatformEvent::MouseMoved) {
+void ScrollManager::resize(const WebMouseEvent& evt) {
+ if (evt.type() == WebInputEvent::MouseMove) {
if (!m_frame->eventHandler().mousePressed())
return;
- m_resizeScrollableArea->resize(evt.position(), m_offsetFromResizeCorner);
+ m_resizeScrollableArea->resize(flooredIntPoint(evt.positionInRootFrame()),
+ m_offsetFromResizeCorner);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/input/ScrollManager.h ('k') | third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698