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

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

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: 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/EventHandlingUtil.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp b/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp
index 908de11084e01bf8a44b9de6c32cb8ae855d5339..4c8e0fb2ba5c5f6ee82a9e0ca762d1ae62ebab7c 100644
--- a/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp
@@ -9,6 +9,7 @@
#include "core/layout/api/LayoutViewItem.h"
#include "core/paint/PaintLayer.h"
#include "platform/scroll/ScrollableArea.h"
+#include "public/platform/WebMouseEvent.h"
namespace blink {
namespace EventHandlingUtil {
@@ -110,12 +111,14 @@ LayoutPoint contentPointFromRootFrame(LocalFrame* frame,
MouseEventWithHitTestResults performMouseEventHitTest(
LocalFrame* frame,
const HitTestRequest& request,
- const PlatformMouseEvent& mev) {
+ const WebMouseEvent& mev) {
DCHECK(frame);
DCHECK(frame->document());
return frame->document()->performMouseEventHitTest(
- request, contentPointFromRootFrame(frame, mev.position()), mev);
+ request, contentPointFromRootFrame(
+ frame, flooredIntPoint(mev.positionInRootFrame())),
+ mev);
}
} // namespace EventHandlingUtil

Powered by Google App Engine
This is Rietveld 408576698