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

Issue 2568643002: Re-land "Detect floats to avoid or clear due to negative margin top (and followup)" (Closed)

Created:
4 years ago by rhogan
Modified:
4 years ago
Reviewers:
pdr.
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

Re-land "Detect floats to avoid or clear due to negative margin top (and followup)" Re-land https://codereview.chromium.org/2531953002 and https://codereview.chromium.org/2547933003. 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. Fix the performance regression on mossiella.com in page_cycler_v2.tough_layout_cases by only looking for floats if margin collapsing has actually moved the child up. BUG=671645, 670325, 666487 Committed: https://crrev.com/5c6452a360ed086b96680a2cad532e2be7d68385 Cr-Commit-Position: refs/heads/master@{#437951}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -13 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 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 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 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 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 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 3 chunks +24 lines, -13 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
rhogan
4 years ago (2016-12-10 13:14:26 UTC) #6
pdr.
On 2016/12/10 at 13:14:26, robhogan wrote: > LGTM Can you please update the change description ...
4 years ago (2016-12-12 18:30:49 UTC) #9
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/2568643002/1
4 years ago (2016-12-12 19:14:39 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-12 23:20:54 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-12 23:23:19 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5c6452a360ed086b96680a2cad532e2be7d68385
Cr-Commit-Position: refs/heads/master@{#437951}

Powered by Google App Engine
This is Rietveld 408576698