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

Issue 1232593004: Don't resolve extended color keywords during parsing (Closed)

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

Description

Don't resolve extended color keywords during parsing Previously we were keeping the "basic" named colors (color keywords) unresolved (as identifiers), while resolving the "extended" named colors. This CL makes us keep the "extended" colors as well, and resolve them during style resolving instead (of during parsing.) Because we now no longer expect to resolve named colors in the fast-path, we can drop that part of CSSParserFastPaths::parseColor. The new behavior matches Gecko and IE. BUG=505410 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199209

Patch Set 1 #

Patch Set 2 : Export findColor. #

Patch Set 3 : Fix unittests. #

Patch Set 4 : Test expectations fixups. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -56 lines) Patch
M LayoutTests/editing/execCommand/insert-list-with-noneditable-content-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/parsing-text-emphasis.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/parsing-text-emphasis-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/getMatchedCSSRules-with-pseudo-elements-complex.html View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/Window/getMatchedCSSRules-with-pseudo-elements-complex-expected.txt View 1 2 3 1 chunk +4 lines, -4 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.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/dom/TextLinkColors.cpp View 1 chunk +3 lines, -31 lines 1 comment Download
M Source/platform/graphics/Color.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
fs
PTAL pdr for platform/ and web/ https://codereview.chromium.org/1232593004/diff/60001/Source/core/dom/TextLinkColors.cpp File Source/core/dom/TextLinkColors.cpp (right): https://codereview.chromium.org/1232593004/diff/60001/Source/core/dom/TextLinkColors.cpp#newcode63 Source/core/dom/TextLinkColors.cpp:63: if (const NamedColor* ...
5 years, 5 months ago (2015-07-16 17:06:03 UTC) #2
pdr.
LGTM for web and platform @timloh, does this LGTY in terms of perf?
5 years, 5 months ago (2015-07-20 03:03:08 UTC) #3
Timothy Loh
lgtm, but yeah the style application here is a bit dodgy. We should probably fix ...
5 years, 5 months ago (2015-07-20 08:39:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1232593004/60001
5 years, 5 months ago (2015-07-21 04:46:47 UTC) #6
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 07:55:42 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199209

Powered by Google App Engine
This is Rietveld 408576698