webkitgtk-2.4.9-abs.patch 1.7 KB

123456789101112131415161718192021222324252627
  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);
  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++;
  14. diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
  15. --- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600
  16. +++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700
  17. @@ -659,7 +659,7 @@
  18. if (!std::isfinite(time))
  19. return String::fromUTF8(_("indefinite time"));
  20. - int seconds = static_cast<int>(abs(time));
  21. + int seconds = static_cast<int>(fabs(time));
  22. int days = seconds / (60 * 60 * 24);
  23. int hours = seconds / (60 * 60);
  24. int minutes = (seconds / 60) % 60;