Bug 1412010 - Add missing includes to gtk(3)drawing files, r?jhorak draft
authorMartin Stransky <stransky@redhat.com>
Thu, 26 Oct 2017 20:14:53 +0200
changeset 687022 40fd37b164c5d35e09e135b7d62d0a7fd72e3736
parent 686766 d734e6acf7778df7c933d33540203f08b44ff977
child 687024 2bc96bdde95b72ee9e9baff436c872f20d1bbb75
push id86378
push userstransky@redhat.com
push dateThu, 26 Oct 2017 18:20:51 +0000
reviewersjhorak
bugs1412010
milestone58.0a1
Bug 1412010 - Add missing includes to gtk(3)drawing files, r?jhorak MozReview-Commit-ID: B1RiTldOenE
widget/gtk/gtk3drawing.cpp
widget/gtk/gtkdrawing.h
--- a/widget/gtk/gtk3drawing.cpp
+++ b/widget/gtk/gtk3drawing.cpp
@@ -10,16 +10,17 @@
 
 #include <gtk/gtk.h>
 #include <gdk/gdkprivate.h>
 #include <string.h>
 #include "gtkdrawing.h"
 #include "mozilla/Assertions.h"
 #include "prinrval.h"
 #include "WidgetStyleCache.h"
+#include "nsDebug.h"
 
 #include <math.h>
 
 static gboolean checkbox_check_state;
 static gboolean notebook_has_tab_gap;
 
 static ScrollbarGTKMetrics sScrollbarMetrics[2];
 static ToggleGTKMetrics sCheckboxMetrics;
--- a/widget/gtk/gtkdrawing.h
+++ b/widget/gtk/gtkdrawing.h
@@ -12,16 +12,17 @@
  * or Windows XP's DrawThemeBackground() API.
  */
 
 #ifndef _GTK_DRAWING_H_
 #define _GTK_DRAWING_H_
 
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
+#include <algorithm>
 
 #if (MOZ_WIDGET_GTK == 2)
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */
 #endif
 
 /*** type definitions ***/