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

Issue 1151593003: Remove hexDigit check in CSSParserValueList (Closed)

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

Description

Remove hexDigit check in CSSParserValueList There is no need to check the value in the HashToken if we use Color::parseHexColor directly, so remove the check and make sure we call Color::parseHexColor directly when dealing with a CSSParserValue of type HexColor. This should be more efficient too since we skip the check and unneeded checks for different color values (rgb/rgba/named color). Functionality covered by fast/css/invalid-predefined-color.html. BUG=489144 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195840

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove ASSERT and add subtest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -13 lines) Patch
M LayoutTests/fast/css/invalid-predefined-color.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/css/invalid-predefined-color-expected.txt View 1 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/script-tests/invalid-predefined-color.js View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/CSSParserValues.cpp View 1 1 chunk +0 lines, -9 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
rwlbuis
PTAL
5 years, 7 months ago (2015-05-21 19:56:31 UTC) #2
Timothy Loh
https://codereview.chromium.org/1151593003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1151593003/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode5312 Source/core/css/parser/CSSPropertyParser.cpp:5312: ASSERT(value->string[0] != '#'); I don't think this assertion is ...
5 years, 7 months ago (2015-05-22 01:05:11 UTC) #3
Timothy Loh
lgtm assuming you meant to send this out again after making changes :)
5 years, 7 months ago (2015-05-24 23:38:09 UTC) #4
rwlbuis
On 2015/05/24 23:38:09, Timothy Loh wrote: > lgtm assuming you meant to send this out ...
5 years, 7 months ago (2015-05-25 00:34:12 UTC) #5
rwlbuis
On 2015/05/25 00:34:12, rwlbuis wrote: > On 2015/05/24 23:38:09, Timothy Loh wrote: > > lgtm ...
5 years, 7 months ago (2015-05-25 00:34:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151593003/20001
5 years, 7 months ago (2015-05-25 00:34:28 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-25 02:13:38 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195840

Powered by Google App Engine
This is Rietveld 408576698