[layout] Fix content-contributions of calc-size().
Previously we'd just treat calc-size() as effectively the same as auto.
This was incorrect. Instead:
- Attempt to resolve the main length, if this succeeds this is our
contribution. (This will capture the calc-size(min-content, size)
case. - If this returns an indefinite size, we force the sizing keyword
as auto, and for the min-size treat auto as min-content, and for
the max-size treat auto as max-content.
This patch also fixes some "depends_on_block_constraints" logic
(accidentally) in cases like:
Bug: 40339056
Change-Id: I22ee162deb49c37b948e5a22a12218b392710603
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5750362
Reviewed-by: David Baron dbaron@chromium.org
Commit-Queue: Ian Kilpatrick ikilpatrick@chromium.org
Auto-Submit: Ian Kilpatrick ikilpatrick@chromium.org
Commit-Queue: David Baron dbaron@chromium.org
Cr-Commit-Position: refs/heads/main@{#1339188}