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

Issue 1163583006: Don't eat margins when column height isn't yet known. (Closed)

Created:
5 years, 6 months ago by mstensho (USE GERRIT)
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Don't eat margins when column height isn't yet known. We ended up thinking that a margin would cross a column boundary, and this even before the column height was known. When margins cross column boundaries, we should indeed eat the part of it that doesn't fit in the first column. But when we don't even know the column height, eating the margin is just nonsense, and besides it confuses the column balancer. When we only have margins and borders, and no actual content, no space shortage is reported to the balancer, so we depend on getting it right in the first balancing pass. Introduce isPageLogicalHeightKnown(). Since blocks that contain spanners typically live in multiple column sets, columnSetAtBlockOffset() also needs to be able to search backwards for the right set for the given offset within the block. The set currently being worked on may be the one after the spanner, while we may be interested in the logical top of the block, which is in the column set before the spanner. General note: Using LayoutState::pageLogicalHeight() in multicol is bad, since the columns don't necessarily all have the same height. There's still more cleaning up to do here. BUG=493349 R=dsinclair@chromium.org,jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196161

Patch Set 1 #

Messages

Total messages: 5 (1 generated)
mstensho (USE GERRIT)
5 years, 6 months ago (2015-05-29 12:49:10 UTC) #1
dsinclair
lgtm
5 years, 6 months ago (2015-05-29 16:52:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163583006/1
5 years, 6 months ago (2015-05-29 16:52:36 UTC) #4
commit-bot: I haz the power
5 years, 6 months ago (2015-05-29 16:55:43 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196161

Powered by Google App Engine
This is Rietveld 408576698