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

Issue 1899193007: Remove special-code for paginating floats followed by lines of text. (Closed)

Created:
4 years, 8 months ago by mstensho (USE GERRIT)
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove special-code for paginating floats followed by lines of text. If a float is pushed to the next fragmentainer, we used to push any lines established by consecutive sibling content along with it, even if they would fit in the previous fragmentainer. As a contrast to this, we did not do the same to consecutive blocks - only to lines! What blocks do makes the most sense [1]. Do the same for lines. [1] Discussed here: https://lists.w3.org/Archives/Public/www-style/2015Sep/0002.html Added two new tests. The one that has a block with text following a float also worked before this CL, but I added it to demonstrate how ridiculous it is to behave differently here, simply depending on whether it's a line or a block. Some existing tests needed an update, because they depended on the previous behavior. Committed: https://crrev.com/046282e7297e25453ff3a589675dc618a5cc4a90 Cr-Commit-Position: refs/heads/master@{#388701}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -138 lines) Patch
M third_party/WebKit/LayoutTests/fast/multicol/float-big-line.html View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/float-big-line-expected.html View 2 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/float-paginate-expected.html View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/float-big-line.html View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/float-big-line-expected.html View 2 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/float-paginate-expected.html View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/float-big-line.html View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/float-big-line-expected.html View 2 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/float-paginate-expected.html View 3 chunks +4 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/unbreakable-tall-float-before-block.html View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/unbreakable-tall-float-before-block-expected.html View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/unbreakable-tall-float-before-line.html View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/unbreakable-tall-float-before-line-expected.html View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/FloatingObjects.h View 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/FloatingObjects.cpp View 4 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 2 chunks +1 line, -53 lines 0 comments Download
M third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 8 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineBreaker.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineBreaker.cpp View 4 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineInfo.h View 1 chunk +1 line, -14 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
mstensho (USE GERRIT)
I started by replacing positionNewFloatOnLine(applesauce, balderdash, baloney, width) with positionNewFloats(&width). Some hopefully rusty bits and ...
4 years, 8 months ago (2016-04-20 22:01:18 UTC) #2
leviw_travelin_and_unemployed
4 years, 8 months ago (2016-04-20 22:09:24 UTC) #4
leviw_travelin_and_unemployed
4 years, 8 months ago (2016-04-20 22:09:42 UTC) #6
leviw_travelin_and_unemployed
lgtm
4 years, 8 months ago (2016-04-20 22:10:03 UTC) #7
leviw_travelin_and_unemployed
Sorry, I got a little click-happy there and didn't type my message yet.... I'm trying ...
4 years, 8 months ago (2016-04-20 22:11:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899193007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899193007/1
4 years, 8 months ago (2016-04-21 04:16:40 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-21 05:18:37 UTC) #11
eae
LGTM
4 years, 8 months ago (2016-04-21 16:25:25 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:31:51 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/046282e7297e25453ff3a589675dc618a5cc4a90
Cr-Commit-Position: refs/heads/master@{#388701}

Powered by Google App Engine
This is Rietveld 408576698