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

Issue 973623002: Fix serialization of content property to always quote (Closed)

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

Description

Fix serialization of content property to always quote Fix serialization of content property to always quote by splitting CSS_STRING into CSS_CUSTOM_IDENT (quoted if needed) and CSS_STRING (always quoted). Also make the CSS properties that support <string> or <custom-ident> construct CSSPrimitiveValues with the correct keyword(CSS_STRING/CSS_CUSTOM_IDENT), specifically -webkit-locale, -webkit-hyphenate and -webkit-highlight now always quote, hence a lot of tests are rebaselined. BUG=462031 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191396

Patch Set 1 #

Patch Set 2 : Add testcase #

Patch Set 3 : Another approach #

Patch Set 4 : Fix unit test #

Patch Set 5 : Fix charset test #

Total comments: 6

Patch Set 6 : Address review comments #

Patch Set 7 : Fix final test #

Total comments: 5

Patch Set 8 : Fix some more stuff #

Patch Set 9 : Rebaseline more tests #

Patch Set 10 : Fix one more #

Patch Set 11 : Add another method #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -254 lines) Patch
M LayoutTests/css3/supports.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/supports-expected.txt View 1 2 3 4 5 6 1 chunk +48 lines, -48 lines 0 comments Download
M LayoutTests/fast/css/content-language-case-insensitivity.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-case-insensitivity-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-comma-separated-list.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-comma-separated-list-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-dynamically-added.html View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/content-language-dynamically-added-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/content-language-dynamically-changed.html View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/fast/css/content-language-dynamically-changed-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/fast/css/content-language-dynamically-removed.html View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/content-language-dynamically-removed-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/content-language-empty.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-empty-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-late.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/content-language-late-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/content-language-mapped-to-webkit-locale.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/content-language-mapped-to-webkit-locale-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/content-language-multiple.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/content-language-multiple-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/content-language-no-content.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-no-content-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-only-whitespace.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-only-whitespace-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/content-language-with-whitespace.html View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/content-language-with-whitespace-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-properties.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-properties-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/lang-mapped-to-webkit-locale.xhtml View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -17 lines 0 comments Download
M LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic.xhtml View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/css/lang-mapped-to-webkit-locale-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -17 lines 0 comments Download
M LayoutTests/fast/css/nested-at-rules.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/nested-at-rules-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/parsing-text-emphasis.html View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/parsing-text-emphasis-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/css/xml-lang-ignored-in-html.html View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/css/xml-lang-ignored-in-html-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/encoding/css-charset-default-expected.txt View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language.php View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language-against-equiv.php View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language-against-equiv-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language-malformed.php View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language-malformed-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language-multiple.php View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/misc/extract-http-content-language-multiple-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSCalculationValue.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.h View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 7 chunks +20 lines, -12 lines 0 comments Download
M Source/core/css/CSSValue.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/css/CSSValueList.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSValueList.cpp View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M Source/core/css/CSSValuePool.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/LayoutStyleCSSValueMapping.cpp View 1 2 3 4 5 6 7 9 chunks +10 lines, -10 lines 0 comments Download
M Source/core/css/StylePropertySerializer.cpp View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 10 13 chunks +34 lines, -16 lines 1 comment Download

Messages

Total messages: 22 (6 generated)
rwlbuis
PTAL.
5 years, 9 months ago (2015-03-03 02:06:20 UTC) #2
Timothy Loh
On 2015/03/03 02:06:20, rwlbuis wrote: > PTAL. We should maybe try and fix this more ...
5 years, 9 months ago (2015-03-03 02:26:18 UTC) #3
rwlbuis
On 2015/03/03 02:26:18, Timothy Loh wrote: > On 2015/03/03 02:06:20, rwlbuis wrote: > > PTAL. ...
5 years, 9 months ago (2015-03-03 21:47:25 UTC) #4
Timothy Loh
Looking better, nice to get rid of the CSSTextFormattingFlags. We should still keep the parser ...
5 years, 9 months ago (2015-03-03 23:20:16 UTC) #5
rwlbuis
On 2015/03/03 23:20:16, Timothy Loh wrote: > Looking better, nice to get rid of the ...
5 years, 9 months ago (2015-03-04 22:50:59 UTC) #6
Timothy Loh
I think the main reason why I'd rather have everything correctly set to string/custom-ident is ...
5 years, 9 months ago (2015-03-04 23:21:45 UTC) #7
rwlbuis
On 2015/03/04 23:21:45, Timothy Loh wrote: > I think the main reason why I'd rather ...
5 years, 9 months ago (2015-03-05 22:27:16 UTC) #8
Timothy Loh
On 2015/03/05 22:27:16, rwlbuis wrote: > On 2015/03/04 23:21:45, Timothy Loh wrote: > > I ...
5 years, 9 months ago (2015-03-05 22:41:54 UTC) #9
Timothy Loh
https://codereview.chromium.org/973623002/diff/200001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/973623002/diff/200001/Source/core/css/parser/CSSPropertyParser.cpp#newcode395 Source/core/css/parser/CSSPropertyParser.cpp:395: return createPrimitiveCustomIdentValue(value); What hit's this case now?
5 years, 9 months ago (2015-03-05 22:43:35 UTC) #10
rwlbuis
On 2015/03/05 22:43:35, Timothy Loh wrote: > https://codereview.chromium.org/973623002/diff/200001/Source/core/css/parser/CSSPropertyParser.cpp > File Source/core/css/parser/CSSPropertyParser.cpp (right): > > https://codereview.chromium.org/973623002/diff/200001/Source/core/css/parser/CSSPropertyParser.cpp#newcode395 ...
5 years, 9 months ago (2015-03-05 22:56:17 UTC) #11
rwlbuis
On 2015/03/05 22:56:17, rwlbuis wrote: > On 2015/03/05 22:43:35, Timothy Loh wrote: > > > ...
5 years, 9 months ago (2015-03-05 23:02:36 UTC) #12
Timothy Loh
On 2015/03/05 23:02:36, rwlbuis wrote: > On 2015/03/05 22:56:17, rwlbuis wrote: > > On 2015/03/05 ...
5 years, 9 months ago (2015-03-05 23:15:31 UTC) #15
rwlbuis
On 2015/03/05 23:15:31, Timothy Loh wrote: > On 2015/03/05 23:02:36, rwlbuis wrote: > > On ...
5 years, 9 months ago (2015-03-05 23:31:31 UTC) #16
Timothy Loh
On 2015/03/05 23:31:31, rwlbuis wrote: > On 2015/03/05 23:15:31, Timothy Loh wrote: > > We ...
5 years, 9 months ago (2015-03-05 23:33:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973623002/200001
5 years, 9 months ago (2015-03-06 00:56:28 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 01:21:27 UTC) #22
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191396

Powered by Google App Engine
This is Rietveld 408576698