Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Issue 1219463003: Dissect and clean up instances of color parsing in CSSPropertyParser (Closed)

Created:
5 years, 5 months ago by fs
Modified:
5 years, 5 months ago
Reviewers:
Timothy Loh
CC:
blink-reviews, dglazkov+blink, rwlbuis, apavlov+blink_chromium.org, blink-reviews-css, darktears
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Dissect and clean up instances of color parsing in CSSPropertyParser This moves all instances of color parsing (mostly <color> parsing even) into their separate methods. The new methods (except parseSVGColor) are formulated using parseColor(). parseColor() itself is combined with the "most common" color parsing case by folding the keyword case into it. The new methods are structured as first checking for keywords that they handle differently from the generic <color> case. The <quirky-color> determination is moved into a function of its own. The parsing of <color> for shadow is cleaned up. Behavioral changes: * Accept '-internal-*' in all cases (for UA-sheets). * Keep 'grey' as a keyword in all cases. * Accept '-webkit-focus-ring-color' in quirks mode and UA-sheets in all cases. * Keep keywords for fallback colors to 'fill' and 'stroke. The intention of the change is to make the differences visible, and try to eliminate the remaining differences in follow-up CLs. BUG=505410 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198062

Patch Set 1 #

Patch Set 2 : Harmonize. #

Patch Set 3 : Update handling of 'grey' in fast-path color parser. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -113 lines) Patch
M Source/core/css/parser/CSSParserFastPaths.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 3 chunks +13 lines, -7 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 15 chunks +140 lines, -105 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
fs
Initially I tried to keep this free from behavioral changes, but that turned into quite ...
5 years, 5 months ago (2015-06-29 11:43:05 UTC) #2
Timothy Loh
lgtm On 2015/06/29 11:43:05, fs wrote: > Somewhat related but future goal: > > * ...
5 years, 5 months ago (2015-06-30 01:17:59 UTC) #3
fs
On 2015/06/30 01:17:59, Timothy Loh wrote: > lgtm > > On 2015/06/29 11:43:05, fs wrote: ...
5 years, 5 months ago (2015-06-30 13:22:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1219463003/40001
5 years, 5 months ago (2015-06-30 14:31:09 UTC) #7
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 14:34:58 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198062

Powered by Google App Engine
This is Rietveld 408576698