View | Details | Raw Unified | Return to bug 222414 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-GtkClickCounter.cpp (+13 lines)
Line 0 Link Here
1
--- Source/WebCore/platform/gtk/GtkClickCounter.cpp.orig	2018-02-07 02:12:45 UTC
2
+++ Source/WebCore/platform/gtk/GtkClickCounter.cpp
3
@@ -85,8 +85,8 @@ int GtkClickCounter::clickCountForGdkBut
4
     guint32 eventTime = getEventTime(event);
5
 
6
     if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
7
-        || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
8
-            && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
9
+        || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
10
+            && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
11
             && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
12
             && (buttonEvent->button == m_previousClickButton)))
13
         m_currentClickCount++;
(-)files/patch-RenderThemeGtk2.cpp (+9 lines)
Line 0 Link Here
1
--- Source/WebCore/platform/gtk/RenderThemeGtk2.cpp
2
+++ Source/WebCore/platform/gtk/RenderThemeGtk2.cpp	
3
@@ -24,6 +24,7 @@
4
 
5
 #include "config.h"
6
 #include "RenderThemeGtk.h"
7
+#include "RenderBox.h"
8
 
9
 #ifdef GTK_API_VERSION_2
(-)files/patch-Source_WebCore_platform_gtk_LocalizedStringsGtk.cpp (+12 lines)
Line 0 Link Here
1
--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp	2015-05-20 03:03:24.000000000 -0600
2
+++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp	2016-02-07 11:49:36.384691005 -0700
3
@@ -659,7 +659,7 @@
4
     if (!std::isfinite(time))
5
         return String::fromUTF8(_("indefinite time"));
6
 
7
-    int seconds = static_cast<int>(abs(time));
8
+    int seconds = static_cast<int>(fabs(time));
9
     int days = seconds / (60 * 60 * 24);
10
     int hours = seconds / (60 * 60);
11
     int minutes = (seconds / 60) % 60;
12

Return to bug 222414