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

Issue 1209693002: Remove LayoutFlowThread::maxLogicalHeight(). (Closed)

Created:
5 years, 6 months ago by mstensho (USE GERRIT)
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Remove LayoutFlowThread::maxLogicalHeight(). Use LayoutUnit::max() like everyone else, to avoid errors when approaching "infinity". We fooled ourselves into thinking that we had two pages (because column height was clamped to LayoutUnit::max()/2, while the block height was clamped to LayoutUnit::max()), when we really only had one. We use saturated arithmetic in LayoutUnit & co anyway, so there's no reason to be afraid of integer overflow. BUG=502407 R=dsinclair@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197771

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
A + LayoutTests/fast/pagination/very-tall-auto-height-crash.html View 1 chunk +3 lines, -1 line 2 comments Download
A + LayoutTests/fast/pagination/very-tall-auto-height-crash-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/layout/LayoutFlowThread.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/layout/MultiColumnFragmentainerGroup.cpp View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
mstensho (USE GERRIT)
Note that the unminimized TC in bug 502407 still crashes. Will file another CL for ...
5 years, 6 months ago (2015-06-24 18:08:28 UTC) #1
leviw_travelin_and_unemployed
lgtm https://codereview.chromium.org/1209693002/diff/1/LayoutTests/fast/pagination/very-tall-auto-height-crash.html File LayoutTests/fast/pagination/very-tall-auto-height-crash.html (right): https://codereview.chromium.org/1209693002/diff/1/LayoutTests/fast/pagination/very-tall-auto-height-crash.html#newcode8 LayoutTests/fast/pagination/very-tall-auto-height-crash.html:8: <div style="height:1000px; padding-top:18446744073709551436px;"></div> Are you sure that's big ...
5 years, 6 months ago (2015-06-24 18:42:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209693002/1
5 years, 6 months ago (2015-06-24 18:42:43 UTC) #5
mstensho (USE GERRIT)
https://codereview.chromium.org/1209693002/diff/1/LayoutTests/fast/pagination/very-tall-auto-height-crash.html File LayoutTests/fast/pagination/very-tall-auto-height-crash.html (right): https://codereview.chromium.org/1209693002/diff/1/LayoutTests/fast/pagination/very-tall-auto-height-crash.html#newcode8 LayoutTests/fast/pagination/very-tall-auto-height-crash.html:8: <div style="height:1000px; padding-top:18446744073709551436px;"></div> On 2015/06/24 18:42:06, leviw wrote: > ...
5 years, 6 months ago (2015-06-24 18:45:44 UTC) #6
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 19:11:24 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197771

Powered by Google App Engine
This is Rietveld 408576698