[Webkit-unassigned] [Bug 30173] [Qt] Make it possible to apply the CSS background color to the native painted widgets instead of to the actual element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 21 07:27:19 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30173





--- Comment #19 from Carol Szabo <carol.szabo at nokia.com>  2009-10-21 07:27:18 PDT ---
(In reply to comment #18)
> Shouldn't we _set_ the default background color based on the QWebPageClient's
> palette at some point (in adjust* or extraDefaultStyleSheet), and then always
> set the option.palette to the backgroundColor when we paint?
> 
> That we don't have to store the default and check if it's changed.
> 
> I'm assuming we want the behavior of rendering google.com with a yellow
> line-edit if the developer has modified the QPalette of either the application
> or the widget. This is the behavior of FF on Linux at least. If the site wants
> a background color (always white eg.) they set it, we pick it up from the CSS,
> and set it on the option palette when rendering.

For the adjustStyle* functions to work I need to save the defaults so the only
purpose they can serve is to make the JS aware of the actual color used for
rendering.
I will look into using extraDefaultStyleSheet but for now this brings the
behavior closer to FF and IE.

-- 
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