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

Issue 2479483002: Properly avoid breaking inside a float's top margin. (Closed)

Created:
4 years, 1 month ago by mstensho (USE GERRIT)
Modified:
4 years, 1 month ago
Reviewers:
eae
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews, mstensho (USE GERRIT)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Properly avoid breaking inside a float's top margin. We used to depend on stumbling upon unbreakable content (such as lines) at column boundaries for this to work, but we failed in the really simple cases (where there was no content at all, for instance). Move the logic for this to float-specific code, so that we don't have to be aware of it at several other locations in the code. Doing this correctly during layout also helps the balancer find the right column height. Added a test for something that used to fail in this area. Committed: https://crrev.com/c8e6a3cc38e6ca93572e9390d1910b81816e089a Cr-Commit-Position: refs/heads/master@{#429641}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -32 lines) Patch
A + third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-after-break-3.html View 2 chunks +4 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/float-margin-top.html View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 4 chunks +38 lines, -20 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
mstensho (USE GERRIT)
4 years, 1 month ago (2016-11-03 10:15:01 UTC) #4
eae
Nice! LGTM
4 years, 1 month ago (2016-11-03 16:15:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2479483002/1
4 years, 1 month ago (2016-11-03 16:27:54 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-03 17:50:59 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 18:14:23 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c8e6a3cc38e6ca93572e9390d1910b81816e089a
Cr-Commit-Position: refs/heads/master@{#429641}

Powered by Google App Engine
This is Rietveld 408576698