wok-next view webkitgtk/stuff/patches/webkitgtk-2.4.9-abs.patch @ rev 21147
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 27 21:28:56 2019 +0100 (2019-01-27) |
parents | |
children |
line source
1 diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp
2 --- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600
3 +++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700
4 @@ -85,8 +85,8 @@
5 guint32 eventTime = getEventTime(event);
7 if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
8 - || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
9 - && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
10 + || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
11 + && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
12 && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
13 && (buttonEvent->button == m_previousClickButton)))
14 m_currentClickCount++;
15 diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
16 --- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600
17 +++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700
18 @@ -659,7 +659,7 @@
19 if (!std::isfinite(time))
20 return String::fromUTF8(_("indefinite time"));
22 - int seconds = static_cast<int>(abs(time));
23 + int seconds = static_cast<int>(fabs(time));
24 int days = seconds / (60 * 60 * 24);
25 int hours = seconds / (60 * 60);
26 int minutes = (seconds / 60) % 60;