
In order to ensure implementation consistency and avoid oversights, we should unify CalculatePreferredSize() and GetHeightForWidth(). Replace them with the CalculatePreferredSize(SizeBounds) overload. Bug: 40232718 Change-Id: I039deb4151cef1837cdcf01689a636bc477e5429 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5464278 Commit-Queue: Weidong Liu <weidongliu@chromium.org> Reviewed-by: Stefan Kuhne <skuhne@chromium.org> Cr-Commit-Position: refs/heads/main@{#1291007}