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

Issue 1145773002: Setting -webkit-column-count to auto is the same as not setting it. (Closed)

Created:
5 years, 7 months ago by mstensho (USE GERRIT)
Modified:
5 years, 7 months ago
Reviewers:
rune
CC:
blink-reviews, mstensho (USE GERRIT), blink-reviews-style_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Setting -webkit-column-count to auto is the same as not setting it. In ComputedStyle, column-count is represented by two members, one integer specifying the count, and one bool specifying whether it's auto or not. If column-count is auto, the integer is ignored, but if the integer changes, it's still detected as a style change (even if auto is set to true), and we'll mark for layout for no good reason. Make sure that setting column-count to auto also resets the integer to its initial value, to avoid this problem. This bug was discovered while working on https://codereview.chromium.org/1141943002/ (disable multicol when printing). When changing from not specifying column-count to setting it to auto triggers relayout, some printing tests started to fail (but that's really just because the current expectation files rely on crbug.com/489615 ). R=rune@opera.com Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195524

Patch Set 1 #

Total comments: 4

Patch Set 2 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
A LayoutTests/fast/multicol/explicit-columns-auto.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A + LayoutTests/fast/multicol/explicit-columns-auto-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/style/ComputedStyle.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
mstensho (USE GERRIT)
5 years, 7 months ago (2015-05-19 09:07:35 UTC) #1
rune
lgtm with nits https://codereview.chromium.org/1145773002/diff/1/LayoutTests/fast/multicol/explicit-columns-auto.html File LayoutTests/fast/multicol/explicit-columns-auto.html (right): https://codereview.chromium.org/1145773002/diff/1/LayoutTests/fast/multicol/explicit-columns-auto.html#newcode4 LayoutTests/fast/multicol/explicit-columns-auto.html:4: .explicitlyNoColumns { -webkit-columns:auto; } Inconsistent indentation. ...
5 years, 7 months ago (2015-05-19 09:18:15 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/1145773002/diff/1/LayoutTests/fast/multicol/explicit-columns-auto.html File LayoutTests/fast/multicol/explicit-columns-auto.html (right): https://codereview.chromium.org/1145773002/diff/1/LayoutTests/fast/multicol/explicit-columns-auto.html#newcode4 LayoutTests/fast/multicol/explicit-columns-auto.html:4: .explicitlyNoColumns { -webkit-columns:auto; } On 2015/05/19 09:18:15, rune wrote: ...
5 years, 7 months ago (2015-05-19 09:37:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1145773002/20001
5 years, 7 months ago (2015-05-19 09:37:50 UTC) #6
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 11:05:04 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195524

Powered by Google App Engine
This is Rietveld 408576698