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

Issue 1367363002: Floats on clean lines that are dirtied during layout (Closed)

Created:
5 years, 2 months ago by rhogan
Modified:
5 years, 2 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@534830
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Floats on clean lines that are dirtied during layout This is a follow-up fix to https://codereview.chromium.org/1306733003 with some opportunistic refactoring to remove duplicate code. When tying floats to the (current) last line-box in block-flow we may hit a float in lines previously considered clean but which we have since decided to continue laying out past (e.g.because one of our floats has changed size). If that happens we need to add the floats to the linebox rather than bailing early. In https://codereview.chromium.org/1306733003 we weren't catering for the possibility that we may have given up on the plan to stop at clean lines. In the refactoring I got rid of a superfluous bool and refactored some common code into a function. Now, if we give up on staying within clean lines we immediately delete them rather than relying on layout state to figure out if we need to do it later. lgtm'd pre-merge at https://codereview.chromium.org/1355003002 TBR=eae@chromium.org BUG=532712 Committed: https://crrev.com/1461e48329b74a0bf26496cd581096af0e9b7380 Cr-Commit-Position: refs/heads/master@{#351010}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -51 lines) Patch
A third_party/WebKit/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html View 1 chunk +28 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied-expected.txt View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 5 chunks +39 lines, -48 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 4 (1 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367363002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367363002/1
5 years, 2 months ago (2015-09-27 18:12:54 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-09-27 19:20:40 UTC) #3
commit-bot: I haz the power
5 years, 2 months ago (2015-09-27 19:21:27 UTC) #4
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/1461e48329b74a0bf26496cd581096af0e9b7380
Cr-Commit-Position: refs/heads/master@{#351010}

Powered by Google App Engine
This is Rietveld 408576698