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

Issue 1221803003: Behave more normally for content taller than the fragmentainer it's in. (Closed)

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

Description

Behave more normally for content taller than the fragmentainer it's in. Refusing to break just because content happens to be taller than the multicol container is just weird, and it's getting in the way for fixing bug 439820. If we had behaved the same way for line layout, we'd refuse to wrap to the next line if we encountered a word that was wider than the container (in addition to being too wide at the current inline position on the line). If the text to lay out is "abc def ghijklmnopqr stu" and the container has room for 10 characters, we'd lay out like this: +----------+ |abc def ghijklmnopqr |stu | +----------+ instead of this (the correct way): +----------+ |abc def | |ghijklmnopqr |stu | +----------+ The usefulness of the hasUniformPageLogicalHeight thing vanished into thin air in the process (calling pageLogicalHeightForOffset() isn't that expesive). Having one bit in LayoutFlowThread specifying if column heights are uniform was just bogus anyway, since column sets are typically separated by column spanners, and if the heights of the set preceding and following a spanner differ, why should adjustLinePositionForPagination() care? This was a relic from the CSS regions days, thought to also be useful for multicol. But it isn't. R=dsinclair@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198415

Patch Set 1 #

Patch Set 2 : Manually rebaseline fast/repaint/multicol-with-text. Get rid of platform-specific expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -160 lines) Patch
A LayoutTests/fast/multicol/line-too-tall-to-fit.html View 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/line-too-tall-to-fit-expected.html View 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/unbreakable-block-too-tall-to-fit.html View 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/unbreakable-block-too-tall-to-fit-expected.html View 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/repaint/multicol-with-text-expected.txt View 1 1 chunk +11 lines, -0 lines 0 comments Download
D LayoutTests/platform/android/fast/repaint/multicol-with-text-expected.txt View 1 1 chunk +0 lines, -16 lines 0 comments Download
D LayoutTests/platform/linux/fast/repaint/multicol-with-text-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D LayoutTests/platform/mac/fast/repaint/multicol-with-text-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D LayoutTests/platform/win-xp/fast/repaint/multicol-with-text-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
D LayoutTests/platform/win/fast/repaint/multicol-with-text-expected.txt View 1 1 chunk +0 lines, -27 lines 0 comments Download
M Source/core/layout/LayoutBlockFlow.cpp View 3 chunks +3 lines, -9 lines 0 comments Download
M Source/core/layout/LayoutFlowThread.h View 2 chunks +0 lines, -3 lines 0 comments Download
M Source/core/layout/LayoutFlowThread.cpp View 2 chunks +1 line, -24 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
mstensho (USE GERRIT)
5 years, 5 months ago (2015-07-07 11:00:19 UTC) #1
dsinclair
lgtm
5 years, 5 months ago (2015-07-07 15:10:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1221803003/20001
5 years, 5 months ago (2015-07-07 15:11:38 UTC) #4
commit-bot: I haz the power
5 years, 5 months ago (2015-07-07 17:44:42 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198415

Powered by Google App Engine
This is Rietveld 408576698