Fix problems with StyledLabel::CalculatePreferredSize().
Calling GetPreferredSize() on a label which hadn't otherwise computed a layout would return an empty size, which seems wrong. Calling GetHeightForWidth() (a const method) could change the results of GetPreferredSize(), a violation of logical constness. Bug: none Change-Id: I2729b9d83ffa94e368fb6553e9ead4b2646e01c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1884360 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#710622}
Showing
Please register or sign in to comment