Bug 88398 - [Skia] Use light gray for grammar markers.
Summary: [Skia] Use light gray for grammar markers.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-06 00:11 PDT by Hironori Bono
Modified: 2012-06-07 01:28 PDT (History)
3 users (show)

See Also:


Attachments
Patch v0 (not ready for reviews) (43.97 KB, patch)
2012-06-06 00:32 PDT, Hironori Bono
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hironori Bono 2012-06-06 00:11:41 PDT
Greetings,

Even though my r118479 <trac.webkit.org/changeset/118479> used dark gray (#555) for grammar markers on Linux and Windows, our UI people prefer light gray (#ccc) for them and I would like to change the color used for rendering grammar markers.

Regards,

Hironori Bono
Comment 1 Hironori Bono 2012-06-06 00:32:09 PDT
Created attachment 145951 [details]
Patch v0 (not ready for reviews)

Greetings,

I would like to upload a change and mark it as r? to run this change on EWS bots. (I wish I do not need more rebaselines.)

Regards,

Hironori Bono
Comment 2 Hironori Bono 2012-06-06 19:24:34 PDT
Greetings Niwa-san and Morita-san,

Would it be possible to review this small change (in terms of code). This change just replaces the color of grammar markers as requested by Glen.

Regards,

Hironori Bono
Comment 3 Ryosuke Niwa 2012-06-06 19:28:19 PDT
Comment on attachment 145951 [details]
Patch v0 (not ready for reviews)

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

> Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:560
> -            0xFF << SK_A32_SHIFT | 0x50 << SK_R32_SHIFT | 0x50 << SK_G32_SHIFT | 0x50 << SK_B32_SHIFT, // Opaque gray.
> +            0xFF << SK_A32_SHIFT | 0xC0 << SK_R32_SHIFT | 0xC0 << SK_G32_SHIFT | 0xC0 << SK_B32_SHIFT, // Opaque gray.
>          };
>          static const uint32_t antiColors[2] = {
>              0x60 << SK_A32_SHIFT | 0x60 << SK_R32_SHIFT, // Semitransparent red
> -            0xFF << SK_A32_SHIFT | 0x30 << SK_R32_SHIFT | 0x30 << SK_G32_SHIFT | 0x30 << SK_B32_SHIFT, // Semitransparent gray
> +            0xFF << SK_A32_SHIFT | 0xC0 << SK_R32_SHIFT | 0xC0 << SK_G32_SHIFT | 0xC0 << SK_B32_SHIFT, // Semitransparent gray

Should we have if-def for mac?
Comment 4 Hironori Bono 2012-06-06 19:35:29 PDT
Comment on attachment 145951 [details]
Patch v0 (not ready for reviews)

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

>> Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:560
>> +            0xFF << SK_A32_SHIFT | 0xC0 << SK_R32_SHIFT | 0xC0 << SK_G32_SHIFT | 0xC0 << SK_B32_SHIFT, // Semitransparent gray
> 
> Should we have if-def for mac?

Fortunately, this file already has an if-def for Mac <http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp&exact_package=chromium&l=536>. (Mac uses green for compatibility with Safari.)
Comment 5 WebKit Review Bot 2012-06-07 01:28:28 PDT
Comment on attachment 145951 [details]
Patch v0 (not ready for reviews)

Clearing flags on attachment: 145951

Committed r119693: <http://trac.webkit.org/changeset/119693>
Comment 6 WebKit Review Bot 2012-06-07 01:28:32 PDT
All reviewed patches have been landed.  Closing bug.