Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(58)

Issue 1156063002: Floats on an empty line should still get positioned. (Closed)

Created:
4 years, 11 months ago by rhogan
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Floats on an empty line should still get positioned. A float can sit on an empty line and so may not have been positioned while searching for a line break. Likewise if we have a line break with clearance then ensure it clears the floats before it in the DOM but not after it. Dirty the lineboxes after a hard-break with clearance so that we do this correctly; don't try to work it out after we're done dirtying lines and may have already added in a float we're not supposed to clear. BUG=477814 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197288

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Total comments: 3

Patch Set 4 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -19 lines) Patch
A LayoutTests/fast/block/float/float-on-empty-line.html View 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/fast/block/float/float-on-empty-line-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 3 5 chunks +12 lines, -19 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
rhogan
4 years, 11 months ago (2015-05-30 15:25:41 UTC) #2
leviw_travelin_and_unemployed
https://codereview.chromium.org/1156063002/diff/40001/Source/core/layout/LayoutBlockFlowLine.cpp File Source/core/layout/LayoutBlockFlowLine.cpp (right): https://codereview.chromium.org/1156063002/diff/40001/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1651 Source/core/layout/LayoutBlockFlowLine.cpp:1651: if (lastObject->isBR() && lastObject->style()->clear() != CNONE) This seems similar ...
4 years, 11 months ago (2015-06-02 22:10:44 UTC) #3
rhogan
On 2015/06/02 at 22:10:44, leviw wrote: > https://codereview.chromium.org/1156063002/diff/40001/Source/core/layout/LayoutBlockFlowLine.cpp > File Source/core/layout/LayoutBlockFlowLine.cpp (right): > > https://codereview.chromium.org/1156063002/diff/40001/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1651 ...
4 years, 11 months ago (2015-06-03 21:09:23 UTC) #4
rhogan
On 2015/06/03 at 21:09:23, rhogan wrote: > On 2015/06/02 at 22:10:44, leviw wrote: > > ...
4 years, 11 months ago (2015-06-03 21:13:16 UTC) #5
leviw_travelin_and_unemployed
Can you add a TODO to the similar code to solve that case the same ...
4 years, 10 months ago (2015-06-08 20:12:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156063002/60001
4 years, 10 months ago (2015-06-17 20:22:57 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2015-06-17 22:18:42 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197288

Powered by Google App Engine
This is Rietveld 408576698