Skip to content

Commit

Permalink
Bug 1126269 - Part 1: Remove nsError.h dependency from C sources in w…
Browse files Browse the repository at this point in the history
…idget/gtk. r=roc
  • Loading branch information
vyv03354 committed Jan 29, 2015
1 parent 021e538 commit 17a46a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions widget/gtk/gtk2drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <gdk/gdkprivate.h>
#include <string.h>
#include "gtkdrawing.h"
#include "nsDebug.h"
#include "mozilla/Assertions.h"
#include "prinrval.h"

#include <math.h>
Expand Down Expand Up @@ -1069,8 +1069,8 @@ moz_gtk_toggle_paint(GdkDrawable* drawable, GdkRectangle* rect,

// XXX we should assert rect->height >= indicator_size too
// after bug 369581 is fixed.
NS_ASSERTION(rect->width >= indicator_size,
"GetMinimumWidgetSize was ignored");
MOZ_ASSERT(rect->width >= indicator_size,
"GetMinimumWidgetSize was ignored");

// Paint it center aligned in the rect.
x = rect->x + (rect->width - indicator_size) / 2;
Expand Down Expand Up @@ -3404,7 +3404,7 @@ moz_gtk_widget_paint(GtkThemeWidgetType widget, GdkDrawable* drawable,

GtkWidget* moz_gtk_get_scrollbar_widget(void)
{
NS_ASSERTION(is_initialized, "Forgot to call moz_gtk_init()");
MOZ_ASSERT(is_initialized, "Forgot to call moz_gtk_init()");
ensure_scrollbar_widget();
return gHorizScrollbarWidget;
}
Expand Down
8 changes: 4 additions & 4 deletions widget/gtk/gtk3drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <gdk/gdkprivate.h>
#include <string.h>
#include "gtkdrawing.h"
#include "nsDebug.h"
#include "mozilla/Assertions.h"
#include "prinrval.h"

#include <math.h>
Expand Down Expand Up @@ -995,8 +995,8 @@ moz_gtk_toggle_paint(cairo_t *cr, GdkRectangle* rect,

// XXX we should assert rect->height >= indicator_size too
// after bug 369581 is fixed.
NS_ASSERTION(rect->width >= indicator_size,
"GetMinimumWidgetSize was ignored");
MOZ_ASSERT(rect->width >= indicator_size,
"GetMinimumWidgetSize was ignored");

// Paint it center aligned in the rect.
x = rect->x + (rect->width - indicator_size) / 2;
Expand Down Expand Up @@ -3397,7 +3397,7 @@ moz_gtk_widget_paint(GtkThemeWidgetType widget, cairo_t *cr,

GtkWidget* moz_gtk_get_scrollbar_widget(void)
{
NS_ASSERTION(is_initialized, "Forgot to call moz_gtk_init()");
MOZ_ASSERT(is_initialized, "Forgot to call moz_gtk_init()");
ensure_scrollbar_widget();
return gHorizScrollbarWidget;
}
Expand Down
6 changes: 3 additions & 3 deletions widget/gtkxtbin/gtk2xtbin.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
#include <X11/Xutil.h>
#include <X11/Xlib.h>
#ifdef MOZILLA_CLIENT
#include "nscore.h"
#include "mozilla/Types.h"
#ifdef _IMPL_GTKXTBIN_API
#define GTKXTBIN_API(type) NS_EXPORT_(type)
#define GTKXTBIN_API(type) MOZ_EXPORT type
#else
#define GTKXTBIN_API(type) NS_IMPORT_(type)
#define GTKXTBIN_API(type) MOZ_IMPORT_API type
#endif
#else
#define GTKXTBIN_API(type) type
Expand Down

0 comments on commit 17a46a7

Please sign in to comment.