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 2532573003: Position a float before laying it out. (Closed)

Created:
4 years ago by mstensho (USE GERRIT)
Modified:
4 years 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

Position a float before laying it out. We'll no longer perform inaccurate layout from insertFloatingObject(), but defer all layout to positionAndLayoutFloat(). We need to do this correctly everywhere. One crucial thing is also to pay attention to the resulting pagination strut before the float, if any. There's only one place where we do this, and that's in positionAndLayoutFloat(). At most call sites, insertFloatingObject() is followed by a call to placeNewFloats(), which will call positionAndLayoutFloat(). There are exceptions to this in line layout, though. In some cases we just insert floats without laying them out and placing them. This happens when we need to figure out the height of the current line before we can place floats below it. In order to figure out if a float fits on the current line, though, we first need to lay it out without marking it as placed. We lacked some test coverage, so I added float-pushed-to-next-fragmentainer-by-floats.html . This also passed prior to this CL, but I nearly broke it while working on this. BUG=663942 Committed: https://crrev.com/596aa530f12f7777ec6336c891930a5c6770fad4 Cr-Commit-Position: refs/heads/master@{#434969}

Patch Set 1 #

Messages

Total messages: 13 (8 generated)
mstensho (USE GERRIT)
4 years ago (2016-11-25 14:16:43 UTC) #6
szager1
lgtm
4 years ago (2016-11-29 01:04:34 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/2532573003/1
4 years ago (2016-11-29 11:45:29 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-29 13:10:43 UTC) #11
commit-bot: I haz the power
4 years ago (2016-11-29 13:14:29 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/596aa530f12f7777ec6336c891930a5c6770fad4
Cr-Commit-Position: refs/heads/master@{#434969}

Powered by Google App Engine
This is Rietveld 408576698