Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(49)

Issue 1169983004: Move fast-path color parsing from CSSPropertyParser to CSSParserFastPaths (Closed)

Created:
4 years, 10 months ago by Timothy Loh
Modified:
4 years, 10 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move fast-path color parsing from CSSPropertyParser to CSSParserFastPaths This patch moves the fast-path color parsing logic in CSSPropertyParser to CSSParserFastPaths, and updates the call-sites in the property parser to expicitly call the relevant functions (setNamedColor, parseHexColor). This also fixes a bug where we would parse color values like \#00ff00 successfully. BUG=447917, 419270 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196917

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -351 lines) Patch
A LayoutTests/css-parser/color-escape-parsing.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParser.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/CSSParserFastPaths.h View 2 chunks +5 lines, -0 lines 1 comment Download
M Source/core/css/parser/CSSParserFastPaths.cpp View 3 chunks +317 lines, -18 lines 1 comment Download
M Source/core/css/parser/CSSPropertyParser.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 9 chunks +16 lines, -328 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Timothy Loh
4 years, 10 months ago (2015-06-09 07:35:30 UTC) #2
alancutter (OOO until 2018)
Just nits for now, still reviewing the s/fastParseColor/Color::parseHexColor/ change. https://codereview.chromium.org/1169983004/diff/20001/Source/core/css/parser/CSSParserFastPaths.cpp File Source/core/css/parser/CSSParserFastPaths.cpp (right): https://codereview.chromium.org/1169983004/diff/20001/Source/core/css/parser/CSSParserFastPaths.cpp#newcode374 Source/core/css/parser/CSSParserFastPaths.cpp:374: ...
4 years, 10 months ago (2015-06-10 00:31:20 UTC) #3
alancutter (OOO until 2018)
lgtm
4 years, 10 months ago (2015-06-10 07:57:00 UTC) #4
Timothy Loh
On 2015/06/10 00:31:20, alancutter wrote: > Just nits for now, still reviewing the s/fastParseColor/Color::parseHexColor/ > ...
4 years, 10 months ago (2015-06-11 01:30:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169983004/20001
4 years, 10 months ago (2015-06-11 01:30:32 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66090)
4 years, 10 months ago (2015-06-11 02:15:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169983004/20001
4 years, 10 months ago (2015-06-11 03:44:38 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2015-06-11 06:03:04 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196917

Powered by Google App Engine
This is Rietveld 408576698