Bug 156333

Summary: [GTK] Rework the theming code for GTK+ 3.20
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: bugs-noreply
Priority: P2 Keywords: Gtk
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=156462
Description Flags
Patch mcatanzaro: review+

Description Carlos Garcia Campos 2016-04-07 01:55:16 PDT
During the 3.19 GTK+ release cycle, the GTK+ css system was reworked, making themes and programs rendering themed widgets, incompatible with the new system. We were trying to fix our rendering every time GTK+ broke something, but we were just changing whatever it was needed to make our rendering look like current GTK+ with the default theme Adwaita. This means that our rendering will be broken for other themes or that changes in Adwaita can break our rendering. This solution was good enough to ensure WebKitGTK+ 2.12 looked good with GTK+ 3.20, but it doesn't work in the long term. We need to ensure that our theming code honors the new GTK+ CSS properties (max-width, min-width, margin, padding, border, ...) in all the cases, not only the cases where Adwaita uses them like we currently do.
Comment 1 Carlos Garcia Campos 2016-04-07 02:18:25 PDT
Created attachment 275871 [details]

Something similar is needed now for ScrollbarThemeGtk
Comment 2 Carlos Garcia Campos 2016-04-11 03:59:10 PDT
Committed r199292: <http://trac.webkit.org/changeset/199292>