[Webkit-unassigned] [Bug 51764] [GTK] Port stock icon painting to GtkStyleContext
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 3 00:48:19 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=51764
Carlos Garcia Campos <cgarcia at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cgarcia at igalia.com
--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> 2011-01-03 00:48:19 PST ---
+static void gtkStyleChangedCallback(GObject*, GParamSpec*)
+{
+ StyleContextMap::const_iterator end = styleContextMap().end();
+ for (StyleContextMap::const_iterator iter = styleContextMap().begin(); iter != end; ++iter)
+ gtk_style_context_invalidate(iter->second.get());
+
+ RenderTheme::themeForPage(0)->platformColorsDidChange();
+}
I would use RenderTheme::defaultTheme() instead, it's exactly the same but less confusing. But maybe we can just call Page::scheduleForcedStyleRecalcForAllPages(); to avoid creating a new RenderTheme only to call platformColorsDidChange();
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list