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

Issue 2382043003: Use ceil() when integerizing pagination struts before table rows. (Closed)

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

Use ceil() when integerizing pagination struts before table rows. Subpixel rendering is not supported in table parts, so everything needs to be integers. However, instead of rounding the pagination strut down to the nearest integer, round it up. This way we at least make sure that we manage to push all the content over to the designated fragmentainer, rather than leaving one tiny strip behind in the previous fragmentainer. There'll still be off-by-one errors, but at least all the content is in the right fragmentainer. Updated some tests to not use subpixel multicol heights, since what they required cannot really be satisfied without adding full subpixel support to tables. Also added a new test that *does* use subpixel multicol height. This test merely makes sure that nothing is left behind in the previous fragmentainer at breaks, without worrying about the exact top position of the objects. This problem was discovered while working on bug 487026, which is about reducing the amount of forced re-layouts that we do for fragmentation, and it turns out that table layout in general, and perhaps strut calculation there in particular, tends to need more layout passes it explicitly asks for (so it depends on other parts of the system dealing out layout passes for free). Added body { overflow:hidden; } declarations to some tests, to reduce the number of layout passes you get for free, i.e. make the tests more evil. BUG=487026 Committed: https://crrev.com/435e6b536c9dd3115b7ebe9ad915487b10f0f537 Cr-Commit-Position: refs/heads/master@{#422312}

Patch Set 1 #

Patch Set 2 : Pretty good idea to explain why we round up. #

Patch Set 3 : rebase master #

Messages

Total messages: 26 (14 generated)
mstensho (USE GERRIT)
4 years, 2 months ago (2016-09-30 20:22:28 UTC) #4
eae
LGTM Please add a comment explaining why to the code.
4 years, 2 months ago (2016-09-30 20:26:22 UTC) #5
mstensho (USE GERRIT)
On 2016/09/30 20:26:22, eae wrote: > LGTM > > Please add a comment explaining why ...
4 years, 2 months ago (2016-09-30 21:00:17 UTC) #6
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/2382043003/20001
4 years, 2 months ago (2016-09-30 21:01:03 UTC) #9
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-10-01 01:12:07 UTC) #11
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/2382043003/20001
4 years, 2 months ago (2016-10-01 08:13:53 UTC) #13
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/layout/LayoutTableSection.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-01 08:17:12 UTC) #15
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/2382043003/40001
4 years, 2 months ago (2016-10-01 10:44:24 UTC) #18
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-10-01 12:50:04 UTC) #20
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/2382043003/40001
4 years, 2 months ago (2016-10-01 13:27:03 UTC) #22
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 2 months ago (2016-10-01 13:32:29 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-01 13:33:56 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/435e6b536c9dd3115b7ebe9ad915487b10f0f537
Cr-Commit-Position: refs/heads/master@{#422312}

Powered by Google App Engine
This is Rietveld 408576698