Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1679672 [wpt PR 26668] - [css-flex] Fix LayoutUnit overflow in au…
…tomatic minimum size calculation, a=testonly Automatic update from web-platform-tests [css-flex] Fix LayoutUnit overflow in automatic minimum size calculation When using the aspect ratio, we were doing size = large1 * large2 / large3. large1 * large2 was overflowing LayoutUnit. Now we do those calculations with the operands as doubles. We still multiply first because *most* of the time these values will all be integers, and all the integers up to LayoutUnit::Max()*LayoutUnit::Max() can be exactly represented with double precision. Change-Id: Id714f38493554c5f1b7e4dfe56bdaa6742f3d8a5 Fixed: 1151608 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2564199 Commit-Queue: David Grogan <dgrogan@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#832193} -- wpt-commits: 8fe6ed48ed74a30c5f7e159d3108dbb85919e4cf wpt-pr: 26668
- Loading branch information