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

Unified Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Rebased, fixed a comment in web_input_event_builders_mac.mm Created 3 years, 8 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/web/tests/FrameTestHelpers.cpp
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
index e2e57a32eac8e6861754ae9f417a530a151c1f90..7f3ad4f065a5bce73027e0f649ea1fb3b3f9d57b 100644
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
@@ -147,8 +147,8 @@ WebMouseEvent createMouseEvent(WebInputEvent::Type type,
const IntPoint& point,
int modifiers) {
WebMouseEvent result(type, modifiers, WebInputEvent::TimeStampForTesting);
- result.x = result.globalX = point.x();
- result.y = result.globalX = point.y();
+ result.setPositionInWidget(point.x(), point.y());
+ result.setPositionInScreen(point.x(), point.y());
result.button = button;
result.clickCount = 1;
return result;
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/Source/web/tests/VisualViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698