Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[layout] Fix table crash due to invalid intrinsic size cache.
https://chromium.googlesource.com/chromium/src/+/d8154ef080c5814125dd49c64442e5c55892c886 ... introduced some logic to try and hit the intrinsic sizes cache more often by checking of the %-padding resolution size was indefinite. This was incorrect. Effectively if one pass *had* a valid %-padding size, we'd skip the cache, calculate the intrinsic-sizes, and store it in the cache. However we wouldn't store *what* the %-padding resolved against. In the next pass (making the %-padding resolve against kIndefiniteSize) we'd hit the cache due to these two lines, resulting in an incorrect answer. The correct way of doing this optimization would have been to store the %-padding resolution size. Bug: 1195685 Change-Id: I3533d8764504cfe9bf367579b8f63d63ea997136 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2806100 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#869289}
- Loading branch information