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

Issue 2531953002: Detect floats to avoid or clear due to negative margin top (Closed)

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

Description

Detect floats to avoid or clear due to negative margin top When a negative margin top pushes a block back up into its previous siblings we need to check for any floats in those siblings it now needs to avoid or clear. Previously we were just looking at its neighbour, we need to keep looking until we reach a sibling that we don't overlap. BUG=666487 Committed: https://crrev.com/3c8d298acf826fc5337c526b1016a03b37c2656a Cr-Commit-Position: refs/heads/master@{#435497}

Patch Set 1 #

Patch Set 2 : bug 666487 #

Patch Set 3 : bug 666487 #

Patch Set 4 : bug 666487 #

Total comments: 2

Patch Set 5 : bug 666487 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-2.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-2-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-3.html View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-3-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-4.html View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-4-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-5.html View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-5-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-6.html View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-6-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 2 3 4 3 chunks +22 lines, -15 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
rhogan
4 years ago (2016-11-27 11:29:57 UTC) #9
rhogan
On 2016/11/27 at 11:29:57, rhogan wrote: > pdr/kojii - can either of you take a ...
4 years ago (2016-11-29 20:10:15 UTC) #19
kojii
lgtm, great fix for interop, thank you for working on this.
4 years ago (2016-11-30 04:24:47 UTC) #20
kojii
(pdr@, I'm not an owner)
4 years ago (2016-11-30 05:50:23 UTC) #21
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/2531953002/60001
4 years ago (2016-11-30 08:09:06 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/315212)
4 years ago (2016-11-30 08:21:31 UTC) #25
pdr.
Two minor suggestions, LGTM otherwise. https://codereview.chromium.org/2531953002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/2531953002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp#newcode1724 third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:1724: prev && prev->isLayoutBlockFlow() ? ...
4 years ago (2016-11-30 21:45:33 UTC) #26
pdr.
On 2016/11/30 at 21:45:33, pdr. wrote: > else > break; > } err... else previousBlockFlow ...
4 years ago (2016-11-30 21:47:04 UTC) #27
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/2531953002/80001
4 years ago (2016-11-30 22:57:37 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-01 00:38:39 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-01 00:42:15 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3c8d298acf826fc5337c526b1016a03b37c2656a
Cr-Commit-Position: refs/heads/master@{#435497}

Powered by Google App Engine
This is Rietveld 408576698