12017-09-26 Chris Dumez <cdumez@apple.com>
2
3 REGRESSION(r222392): [GTK] Many forms tests are failing
4 https://bugs.webkit.org/show_bug.cgi?id=177449
5
6 Reviewed by NOBODY (OOPS!).
7
8 Make sure events' timestamp are properly initialized for the GTK port.
9 GDKEvent's time is actually in milliseconds, not seconds and we need
10 to deal with the GDK_CURRENT_TIME special value to avoid ending up
11 with a 0-value WallTime.
12
13 * platform/gtk/PlatformKeyboardEventGtk.cpp:
14 (WebCore::eventTime):
15 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
16 * platform/gtk/PlatformMouseEventGtk.cpp:
17 (WebCore::eventTime):
18 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
19 * platform/gtk/PlatformWheelEventGtk.cpp:
20 (WebCore::eventTime):
21 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
22