Bug 66635

Summary: [Qt] Button text is invisible when mobile theme is in use and application palette set to use light text color.
Product: WebKit Reporter: Misha <mtutunik>
Component: New BugsAssignee: Misha <mtutunik>
Status: RESOLVED FIXED    
Severity: Normal CC: kling, webkit.review.bot
Priority: P3 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: All   
OS: Unspecified   
Attachments:
Description Flags
proposed patch.
kling: review+, kling: commit-queue-
patch with corrected change log
kenneth: review-, kenneth: commit-queue-
Corrected Change log again none

Description Misha 2011-08-21 16:15:30 PDT
When mobile theme is in use and application pallete is using light color to display text button text become invisible. The reason for that is that in RenderThemeQt::systemFont() we are using application pallete while when are painting button lightGrayPalette is used.
Comment 1 Misha 2011-08-21 16:25:55 PDT
Created attachment 104631 [details]
proposed patch.

Calling setPaletteFromPageClientIfExists() takes care about the issue.
Comment 2 Andreas Kling 2011-08-22 04:07:10 PDT
Comment on attachment 104631 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=104631&action=review

LGTM. It's a shame we don't test the mobile theme on the bots, though.

> Source/WebCore/ChangeLog:7
> +        When mobile theme is in use and application pallete is using light 

pallete -> palette

> Source/WebCore/ChangeLog:8
> +        color to display text button text become invisible. The reason for 

"text button text become" -> "text, button text becomes"

> Source/WebCore/ChangeLog:10
> +        pallete while when are painting button lightGrayPalette is used.

pallete -> palette
"when are painting button" -> "when we are painting buttons"

> Source/WebCore/ChangeLog:11
> +        Calling setPaletteFromPageClientIfExists() takes care about the issue.

about -> of
Comment 3 Misha 2011-08-22 12:47:39 PDT
Created attachment 104717 [details]
patch with corrected change log
Comment 4 Kenneth Rohde Christiansen 2011-08-22 12:59:06 PDT
Comment on attachment 104717 [details]
patch with corrected change log

This changelog is missing the Reviewed by part.
Comment 5 Misha 2011-08-23 12:28:18 PDT
Created attachment 104890 [details]
Corrected Change log again
Comment 6 WebKit Review Bot 2011-08-23 16:12:40 PDT
Comment on attachment 104890 [details]
Corrected Change log again

Clearing flags on attachment: 104890

Committed r93652: <http://trac.webkit.org/changeset/93652>
Comment 7 WebKit Review Bot 2011-08-23 16:12:44 PDT
All reviewed patches have been landed.  Closing bug.