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

Issue 14334014: Parse "-webkit-columns: auto <length>" properly. (Closed)

Created:
7 years, 8 months ago by mstensho (USE GERRIT)
Modified:
7 years, 4 months ago
CC:
blink-reviews, apavlov+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Parse "-webkit-columns: auto <length>" properly. The two longhands for the 'columns' property ('column-count' and 'column-width') may both take 'auto' as a value. When we encounter 'auto' during parsing the value list of a declaration, we cannot just make a guess at which property/properties that's meant for. Instead, don't assign anything to 'auto' right away, but wait until all values have been processed and at that point set the still unassigned properties to 'auto'. If 'auto' isn't in the value list at all, set unassigned properties to 'initial' for the 'columns' property, just like we do for any other property. R= BUG=235415 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155047

Patch Set 1 #

Total comments: 6

Patch Set 2 : Code review #

Patch Set 3 : Rebase master + minor coding style fix that the old version of check-webkit-style didn't complain a… #

Total comments: 10

Patch Set 4 : Code review #2 #

Total comments: 6

Patch Set 5 : Code review #3 #

Total comments: 8

Patch Set 6 : Rebase master #

Patch Set 7 : Address minor issues raised in the lgtm comment #

Patch Set 8 : Compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -9 lines) Patch
A LayoutTests/fast/multicol/columns-shorthand-parsing-2.html View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/columns-shorthand-parsing-2-expected.txt View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 2 3 4 5 6 7 4 chunks +84 lines, -9 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
mstensho (USE GERRIT)
7 years, 7 months ago (2013-05-14 05:56:55 UTC) #1
mstensho (USE GERRIT)
7 years, 7 months ago (2013-05-14 05:57:58 UTC) #2
mstensho (USE GERRIT)
7 years, 6 months ago (2013-06-12 09:48:18 UTC) #3
mstensho (USE GERRIT)
7 years, 6 months ago (2013-06-17 09:48:36 UTC) #4
mstensho (USE GERRIT)
@darin: would you be the right person to review this, or should I choose someone ...
7 years, 5 months ago (2013-07-19 21:01:00 UTC) #5
darin (slow to review)
On 2013/07/19 21:01:00, Morten Stenshorne wrote: > @darin: would you be the right person to ...
7 years, 5 months ago (2013-07-22 16:09:05 UTC) #6
Julien - ping for review
https://codereview.chromium.org/14334014/diff/1/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html File LayoutTests/fast/multicol/columns-shorthand-parsing-2.html (right): https://codereview.chromium.org/14334014/diff/1/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html#newcode28 LayoutTests/fast/multicol/columns-shorthand-parsing-2.html:28: shouldBeEqualToString("document.getElementById('elm1').style.WebkitColumnWidth", "auto"); It would be more readable to move ...
7 years, 5 months ago (2013-07-23 00:56:29 UTC) #7
mstensho (USE GERRIT)
https://codereview.chromium.org/14334014/diff/1/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html File LayoutTests/fast/multicol/columns-shorthand-parsing-2.html (right): https://codereview.chromium.org/14334014/diff/1/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html#newcode28 LayoutTests/fast/multicol/columns-shorthand-parsing-2.html:28: shouldBeEqualToString("document.getElementById('elm1').style.WebkitColumnWidth", "auto"); On 2013/07/23 00:56:29, Julien Chaffraix wrote: > ...
7 years, 5 months ago (2013-07-23 14:19:07 UTC) #8
Julien - ping for review
https://codereview.chromium.org/14334014/diff/19001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html File LayoutTests/fast/multicol/columns-shorthand-parsing-2.html (right): https://codereview.chromium.org/14334014/diff/19001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html#newcode13 LayoutTests/fast/multicol/columns-shorthand-parsing-2.html:13: ["-webkit-columns:auto 10em;", "auto", "10em"], Nit: You could remove the ...
7 years, 5 months ago (2013-07-23 17:26:50 UTC) #9
mstensho (USE GERRIT)
https://codereview.chromium.org/14334014/diff/19001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html File LayoutTests/fast/multicol/columns-shorthand-parsing-2.html (right): https://codereview.chromium.org/14334014/diff/19001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html#newcode13 LayoutTests/fast/multicol/columns-shorthand-parsing-2.html:13: ["-webkit-columns:auto 10em;", "auto", "10em"], On 2013/07/23 17:26:50, Julien Chaffraix ...
7 years, 5 months ago (2013-07-23 21:35:33 UTC) #10
Julien - ping for review
https://codereview.chromium.org/14334014/diff/26001/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/14334014/diff/26001/Source/core/css/CSSParser-in.cpp#newcode3219 Source/core/css/CSSParser-in.cpp:3219: bool columnWidthFound = false; Ideally variable names should be ...
7 years, 5 months ago (2013-07-24 21:41:11 UTC) #11
mstensho (USE GERRIT)
https://codereview.chromium.org/14334014/diff/26001/Source/core/css/CSSParser-in.cpp File Source/core/css/CSSParser-in.cpp (right): https://codereview.chromium.org/14334014/diff/26001/Source/core/css/CSSParser-in.cpp#newcode3219 Source/core/css/CSSParser-in.cpp:3219: bool columnWidthFound = false; On 2013/07/24 21:41:11, Julien Chaffraix ...
7 years, 5 months ago (2013-07-25 12:01:59 UTC) #12
Julien - ping for review
lgtm https://codereview.chromium.org/14334014/diff/31001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html File LayoutTests/fast/multicol/columns-shorthand-parsing-2.html (right): https://codereview.chromium.org/14334014/diff/31001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html#newcode36 LayoutTests/fast/multicol/columns-shorthand-parsing-2.html:36: <body onload="runTests()"> Because you use the onload event ...
7 years, 5 months ago (2013-07-26 20:14:39 UTC) #13
mstensho (USE GERRIT)
OK, we're done. Thanks for the review! https://codereview.chromium.org/14334014/diff/31001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html File LayoutTests/fast/multicol/columns-shorthand-parsing-2.html (right): https://codereview.chromium.org/14334014/diff/31001/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html#newcode36 LayoutTests/fast/multicol/columns-shorthand-parsing-2.html:36: <body onload="runTests()"> ...
7 years, 5 months ago (2013-07-26 22:20:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/14334014/40001
7 years, 5 months ago (2013-07-26 22:23:12 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-26 23:28:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/14334014/53001
7 years, 4 months ago (2013-07-27 05:18:16 UTC) #17
commit-bot: I haz the power
7 years, 4 months ago (2013-07-27 12:22:15 UTC) #18
Message was sent while issue was closed.
Change committed as 155047

Powered by Google App Engine
This is Rietveld 408576698