Bug 102939 - [chromium] Change default tap highlight color for Chromium Windows & Linux.
Summary: [chromium] Change default tap highlight color for Chromium Windows & Linux.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: W. James MacLean
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 07:13 PST by W. James MacLean
Modified: 2012-11-21 10:53 PST (History)
6 users (show)

See Also:


Attachments
Patch (2.11 KB, patch)
2012-11-21 07:16 PST, W. James MacLean
no flags Details | Formatted Diff | Diff
Patch for landing (2.07 KB, patch)
2012-11-21 10:27 PST, W. James MacLean
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description W. James MacLean 2012-11-21 07:13:54 PST
[chromium] Change default tap highlight color for Chromium Windows & Linux.
Comment 1 W. James MacLean 2012-11-21 07:16:44 PST
Created attachment 175438 [details]
Patch
Comment 2 Adam Barth 2012-11-21 10:01:58 PST
Comment on attachment 175438 [details]
Patch

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

> Source/WebCore/rendering/RenderThemeChromiumSkia.h:50
> +        virtual Color platformTapHighlightColor() const OVERRIDE

The indent in this file is really odd.

Does it matter that defaultTapHighlightColor has type RGBA32 and the return type of this function is Color?

> Source/WebCore/rendering/RenderThemeChromiumSkia.h:52
> +            return RenderThemeChromiumSkia::defaultTapHighlightColor;

I'm surprised that "RenderThemeChromiumSkia::" is necessary.
Comment 3 W. James MacLean 2012-11-21 10:25:23 PST
Comment on attachment 175438 [details]
Patch

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

>> Source/WebCore/rendering/RenderThemeChromiumSkia.h:50
>> +        virtual Color platformTapHighlightColor() const OVERRIDE
> 
> The indent in this file is really odd.
> 
> Does it matter that defaultTapHighlightColor has type RGBA32 and the return type of this function is Color?

Yes, I noticed the indenting was strange, and I thought about changing it, but the rest of the CL is so small I thought it would obscure the main intent of the CL. :-)

There is an implicit conversion (platform/Color.h) from RGBA32 -> Color, but I'll make it explicit before I land.

>> Source/WebCore/rendering/RenderThemeChromiumSkia.h:52
>> +            return RenderThemeChromiumSkia::defaultTapHighlightColor;
> 
> I'm surprised that "RenderThemeChromiumSkia::" is necessary.

Actually it's not ... I was just following the style in RenderThemeChromiumAndroid, but it doesn't need to be here. I'll remove it before landing.
Comment 4 W. James MacLean 2012-11-21 10:27:15 PST
Created attachment 175478 [details]
Patch for landing
Comment 5 Adam Barth 2012-11-21 10:40:13 PST
Yeah, we should fix the indent in a separate patch
Comment 6 WebKit Review Bot 2012-11-21 10:53:00 PST
Comment on attachment 175478 [details]
Patch for landing

Clearing flags on attachment: 175478

Committed r135418: <http://trac.webkit.org/changeset/135418>
Comment 7 WebKit Review Bot 2012-11-21 10:53:03 PST
All reviewed patches have been landed.  Closing bug.