Commit graph

16 commits

Author SHA1 Message Date
trav90
3e7ff78276 Fix GTK3 build bustage 2019-02-15 23:43:43 +08:00
trav90
240fc2a6b6 [GTK3] For Gtk > 3.20 determine scale trough size from trough CSS node and also add border/padding/margin 2019-02-15 23:43:34 +08:00
trav90
cfed5f8df1 [GTK3] Consider also margin when determine range widget slider size 2019-02-15 23:43:32 +08:00
trav90
680970a479 [GTK3] With GTK versions < 3.8 draw menuitem background and frame only when in hover and not a separator 2019-02-15 23:43:31 +08:00
trav90
07991c52f4 [GTK3] Implement pre-3.20 MOZ_GTK_PROGRESS_CHUNK in WidgetStyleCache 2019-02-15 23:43:30 +08:00
trav90
a9302f7a0e [GTK3] Consider textview root node background in addition to text node for -moz-appearance:textfield-multiline
This is necessary for GTK versions > 3.18 because windows no longer clear their backgrounds since https://git.gnome.org/browse/gtk+/commit/?id=580ea227a6bb19ad6c6d4766b3a36dbad24583f3 and Ambiance for 3.20 has a transparent background for the "text" window.
2019-02-15 23:43:27 +08:00
trav90
3951327f27 [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.
2019-02-15 23:43:24 +08:00
trav90
9461197f53 [GTK3] Use WidgetCache to get colors at nsLookAndFeel 2019-02-15 23:43:19 +08:00
trav90
6a029bbbad [GTK3] Adjust menuitem padding and check/radio indicator position for changes in GTK 3.20 2019-02-15 23:43:17 +08:00
trav90
aa3618bdd7 [GTK3] Rename subtract_margin and rectangle_inset to Inset* and swap InsetByMargin parameters for consistency. 2019-02-15 23:43:15 +08:00
trav90
cfd6edee95 [GTK] Rename radio/check menuitem and indicator as used with ClaimStyleContext.
The same name is retained for moz_gtk_widget_paint(), which is now more consistent.
2019-02-15 23:43:14 +08:00
trav90
7420a48c04 [GTK3] Use menuitem padding between menuitem and check indicator. 2019-02-15 23:43:12 +08:00
trav90
51ddd61925 [GTK3] Draw only background and frame of separator menuitems in GTK versions > 3.20
In GTK 3.20, gtk_menu_item_draw() just draws the root widget gadget, depending on the theme to style menu items with CSS name "separator" appropriately.
2019-02-15 23:43:11 +08:00
trav90
29821c238a [GTK3] Draw separator menuitem background and frame behind separator in menu 2019-02-15 23:43:09 +08:00
trav90
381de05df3 [GTK3] Draw menuitem background even when not in hover 2019-02-15 23:43:08 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00