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

Issue 2486413002: Split positionAndLayoutFloat() off positionNewFloats(). (Closed)

Created:
4 years, 1 month ago by mstensho (USE GERRIT)
Modified:
4 years, 1 month ago
Reviewers:
szager1
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split positionAndLayoutFloat() off positionNewFloats(). Float layout is somewhat broken when it comes to fragmentation (multicol, printing). We're going to have to make sure that we always position the float before laying it out, and, after layout, insert a break before it if needed. This is a preparatory CL for that. We currently lay out a float e.g. in insertFloatingObject() without worrying about setting the position first. No behavior changes intended. BUG=663942 Committed: https://crrev.com/d108b2435612ff0bf1f2d88e79f798b691889df2 Cr-Commit-Position: refs/heads/master@{#431422}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -96 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 chunk +105 lines, -96 lines 2 comments Download

Messages

Total messages: 12 (5 generated)
mstensho (USE GERRIT)
4 years, 1 month ago (2016-11-10 10:24:47 UTC) #3
szager1
lgtm
4 years, 1 month ago (2016-11-10 20:56:58 UTC) #4
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/2486413002/1
4 years, 1 month ago (2016-11-10 20:59:42 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-11 00:43:26 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/d108b2435612ff0bf1f2d88e79f798b691889df2 Cr-Commit-Position: refs/heads/master@{#431422}
4 years, 1 month ago (2016-11-11 00:45:57 UTC) #10
mstensho (USE GERRIT)
https://codereview.chromium.org/2486413002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right): https://codereview.chromium.org/2486413002/diff/1/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp#newcode3640 third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:3640: positionAndLayoutFloat(floatingObject, logicalTop); Oops! Forgot to actually update logicalTop here. ...
4 years, 1 month ago (2016-11-16 10:18:59 UTC) #11
mstensho (USE GERRIT)
4 years, 1 month ago (2016-11-16 10:28:13 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2486413002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp (right):

https://codereview.chromium.org/2486413002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp:3640:
positionAndLayoutFloat(floatingObject, logicalTop);
On 2016/11/16 10:18:59, mstensho wrote:
> Oops! Forgot to actually update logicalTop here. positionAndLayoutFloat()
> returns a new logical top, but we currently just ignore it.

See crbug.com/665804

Powered by Google App Engine
This is Rietveld 408576698