wok-current view webkitgtk/stuff/webkitgtk-fix-abs.patch @ rev 25672

patch tazpkg, upgrade core pkgs first
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 03 17:58:42 2024 +0000 (6 months ago)
parents
children
line source
1 diff --git a/Source/WebCore/platform/gtk/GtkClickCounter.cpp b/Source/WebCore/platform/gtk/GtkClickCounter.cpp
2 index baa8917..7db658c 100644
3 --- a/Source/WebCore/platform/gtk/GtkClickCounter.cpp
4 +++ b/Source/WebCore/platform/gtk/GtkClickCounter.cpp
5 @@ -85,8 +85,8 @@ int GtkClickCounter::clickCountForGdkButtonEvent(GtkWidget* widget, GdkEventButt
6 guint32 eventTime = getEventTime(event);
8 if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
9 - || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
10 - && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
11 + || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
12 + && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
13 && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
14 && (buttonEvent->button == m_previousClickButton)))
15 m_currentClickCount++;
16 diff --git a/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp b/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
17 index 30d7d13..2563be6 100644
18 --- a/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
19 +++ b/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
20 @@ -659,7 +659,7 @@ String localizedMediaTimeDescription(float time)
21 if (!std::isfinite(time))
22 return String::fromUTF8(_("indefinite time"));
24 - int seconds = static_cast<int>(abs(time));
25 + int seconds = static_cast<int>(fabs(time));
26 int days = seconds / (60 * 60 * 24);
27 int hours = seconds / (60 * 60);
28 int minutes = (seconds / 60) % 60;