summaryrefslogtreecommitdiffstats
path: root/widget/gtk/nsLookAndFeel.cpp
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-04-06 09:06:33 -0500
committertrav90 <travawine@protonmail.ch>2018-04-06 09:06:33 -0500
commitdfe72009d38d82f7cee61d458b8574fb9eddfb2e (patch)
tree7179ce2a2c6144e247c493872fd2be01120533f3 /widget/gtk/nsLookAndFeel.cpp
parent91d45b16307d5115edcfe8bd0e626d8269c30d13 (diff)
downloadUXP-dfe72009d38d82f7cee61d458b8574fb9eddfb2e.tar
UXP-dfe72009d38d82f7cee61d458b8574fb9eddfb2e.tar.gz
UXP-dfe72009d38d82f7cee61d458b8574fb9eddfb2e.tar.lz
UXP-dfe72009d38d82f7cee61d458b8574fb9eddfb2e.tar.xz
UXP-dfe72009d38d82f7cee61d458b8574fb9eddfb2e.zip
[GTK3] Introduce MOZ_GTK_TEXT_VIEW_TEXT and move MOZ_GTK_RESIZER to WidgetStyleCache
The style context for MOZ_GTK_TEXT_VIEW is now created by copying from the widget instead of caching a widget and using its context. No rendering changes are expected, unless themes are animating GtkTextView backgrounds.
Diffstat (limited to 'widget/gtk/nsLookAndFeel.cpp')
-rw-r--r--widget/gtk/nsLookAndFeel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/gtk/nsLookAndFeel.cpp b/widget/gtk/nsLookAndFeel.cpp
index 1a699ecbd..abc0ff061 100644
--- a/widget/gtk/nsLookAndFeel.cpp
+++ b/widget/gtk/nsLookAndFeel.cpp
@@ -1291,7 +1291,7 @@ nsLookAndFeel::Init()
}
#else
// Text colors
- style = ClaimStyleContext(MOZ_GTK_TEXT_VIEW);
+ style = ClaimStyleContext(MOZ_GTK_TEXT_VIEW_TEXT);
gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color);
sMozFieldBackground = GDK_RGBA_TO_NS_RGBA(color);
gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color);