DescriptionRevert "Fixed StyledLabel size caching"
Reason for revert: UninitCondition in views::StyledLabel::SetDisplayedOnBackgroundColor
see bug for more details.
This reverts commit 1736bcf4e918f13c78ade1d446c7222c720d4d6a.
> StyledLabel size caching was not really working due to width check
> did not take control insets into account. So any call to
> GetHeightForWidth or Layout caused full layout recalculation.
> When view with StyledLabel is created CalculateAndDoLayout that
> does all layouting job is called for five or six times with same
> arguments. And each call caused StyledLabel reset and controls removal
> R=sky@chromium.org
> Review URL: https://codereview.chromium.org/734923003
BUG=443275
TBR=edjomin@yandex-team.ru, sky@chromium.org
Committed: https://crrev.com/ae2f8670e66a882e8b00be8f217b377f53f0000d
Cr-Commit-Position: refs/heads/master@{#308853}
Patch Set 1 #
Messages
Total messages: 5 (1 generated)
|