Changeset 181851 in webkit
- Timestamp:
- Mar 23, 2015, 3:05:12 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/API/gtk/WebKitWebViewBase.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r181850 r181851 1 2015-03-23 Zan Dobersek <zdobersek@igalia.com> 2 3 [GTK] Use std::abs() in ClickCounter::currentClickCountForGdkButtonEvent() 4 https://bugs.webkit.org/show_bug.cgi?id=142964 5 6 Reviewed by Carlos Garcia Campos. 7 8 * UIProcess/API/gtk/WebKitWebViewBase.cpp: 9 (ClickCounter::currentClickCountForGdkButtonEvent): Use the STL's std::abs() 10 instead of C's abs(). The templated nature of std::abs() ensures the proper 11 computation that matches the types of the passed-in values, and shuts down 12 a warning when compiling with Clang. 13 1 14 2015-03-23 Zan Dobersek <zdobersek@igalia.com> 2 15 -
trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp
r181847 r181851 116 116 117 117 if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) 118 || (( abs(buttonEvent->x - previousClickPoint.x()) < doubleClickDistance)119 && ( abs(buttonEvent->y - previousClickPoint.y()) < doubleClickDistance)118 || ((std::abs(buttonEvent->x - previousClickPoint.x()) < doubleClickDistance) 119 && (std::abs(buttonEvent->y - previousClickPoint.y()) < doubleClickDistance) 120 120 && (eventTime - previousClickTime < static_cast<unsigned>(doubleClickTime)) 121 121 && (buttonEvent->button == previousClickButton)))
Note:
See TracChangeset
for help on using the changeset viewer.