Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-flexbox] Don't always add the child as percentage-sized child
ComputePercentageLogicalHeight has the side-effect of calling AddPercentHeightDescendant on the containing block; that is not great when we just want to check if a size is definite, from MainSizeIsDefiniteForPercentageResolution. Add a parameter to make it optional. Also change CrossAxisSizeIsDefinite over to this function. Here, we do not have to worry about AddPercentHeightDescendant because we will later resolve that size through normal mechanisms anyway. Bug: 933931 Change-Id: Id44d15eb546c15bbdece99282550419eb0f8654e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1492294 Commit-Queue: Christian Biesinger <[email protected]> Reviewed-by: Emil A Eklund <[email protected]> Cr-Commit-Position: refs/heads/master@{#637885}
- Loading branch information