Index: ui/gfx/canvas_skia_linux.cc |
diff --git a/ui/gfx/canvas_skia_linux.cc b/ui/gfx/canvas_skia_linux.cc |
index 17da4fc51dcbae01c727adb0fc31115ae5edc334..7cf72d50d2ddbaefd603c9f0c88951c8e88c9783 100644 |
--- a/ui/gfx/canvas_skia_linux.cc |
+++ b/ui/gfx/canvas_skia_linux.cc |
@@ -45,17 +45,20 @@ void UpdateCairoFontOptions() { |
if (!cairo_font_options) |
cairo_font_options = cairo_font_options_create(); |
- GtkSettings* gtk_settings = gtk_settings_get_default(); |
gint antialias = 0; |
gint hinting = 0; |
gchar* hint_style = NULL; |
gchar* rgba_style = NULL; |
+ |
+#if !defined(USE_WAYLAND) |
+ GtkSettings* gtk_settings = gtk_settings_get_default(); |
g_object_get(gtk_settings, |
"gtk-xft-antialias", &antialias, |
"gtk-xft-hinting", &hinting, |
"gtk-xft-hintstyle", &hint_style, |
"gtk-xft-rgba", &rgba_style, |
NULL); |
+#endif |
// g_object_get() doesn't tell us whether the properties were present or not, |
// but if they aren't (because gnome-settings-daemon isn't running), we'll get |