summaryrefslogtreecommitdiffstats
path: root/widget/gtk/gtkdrawing.h
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/gtkdrawing.h
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/gtkdrawing.h')
-rw-r--r--widget/gtk/gtkdrawing.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/widget/gtk/gtkdrawing.h b/widget/gtk/gtkdrawing.h
index 540e38184..7db5db043 100644
--- a/widget/gtk/gtkdrawing.h
+++ b/widget/gtk/gtkdrawing.h
@@ -145,8 +145,11 @@ typedef enum {
MOZ_GTK_ENTRY,
/* Paints a GtkExpander. */
MOZ_GTK_EXPANDER,
- /* Paints a GtkTextView. */
+ /* Paints a GtkTextView or gets the style context corresponding to the
+ root node of a GtkTextView. */
MOZ_GTK_TEXT_VIEW,
+ /* The "text" window or node of a GtkTextView */
+ MOZ_GTK_TEXT_VIEW_TEXT,
/* Paints a GtkOptionMenu. */
MOZ_GTK_DROPDOWN,
/* Paints a dropdown arrow (a GtkButton containing a down GtkArrow). */
@@ -168,7 +171,7 @@ typedef enum {
MOZ_GTK_FRAME,
/* Paints the border of a GtkFrame */
MOZ_GTK_FRAME_BORDER,
- /* Paints a resize grip for a GtkWindow */
+ /* Paints a resize grip for a GtkTextView */
MOZ_GTK_RESIZER,
/* Paints a GtkProgressBar. */
MOZ_GTK_PROGRESSBAR,