mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1089023 - Unbreak GTK3 build after bug 1087732. r=jwatt
This commit is contained in:
parent
142aaa69e4
commit
4f07f4b8f2
@ -34,6 +34,7 @@
|
||||
#include <algorithm>
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
NS_IMPL_ISUPPORTS_INHERITED(nsNativeThemeGTK, nsNativeTheme, nsITheme,
|
||||
nsIObserver)
|
||||
@ -880,10 +881,10 @@ nsNativeThemeGTK::DrawWidgetBackground(nsRenderingContext* aContext,
|
||||
|
||||
renderer.Draw(ctx, drawingRect.Size(), rendererFlags, colormap);
|
||||
#else
|
||||
cairo_t *ctx =
|
||||
(cairo_t*)aDrawTarget->GetNativeSurface(NativeSurfaceType::CAIRO_CONTEXT);
|
||||
MOZ_ASSERT(ctx);
|
||||
moz_gtk_widget_paint(gtkWidgetType, ctx, &gdk_rect,
|
||||
cairo_t *cairo_ctx =
|
||||
(cairo_t*)aDrawTarget.GetNativeSurface(NativeSurfaceType::CAIRO_CONTEXT);
|
||||
MOZ_ASSERT(cairo_ctx);
|
||||
moz_gtk_widget_paint(gtkWidgetType, cairo_ctx, &gdk_rect,
|
||||
&state, flags, direction);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user