DescriptionReland performance fixes for StatusBubbleMac.
This reverts commit 7a15c8173fca5413fe61113b82185fe721ce0b98, bringing
back the following changes:
[Mac] Always sets the status bubble to 1pt wide when hidden.
When the status bubble is in state kBubbleHidden, its width is now always 1pt.
This prevents us from wasting time resizing and redrawing a hidden bubble.
[Mac] Cleans up the StatusBubbleMac code.
This CL reduces unnecessary work in StatusBubbleMac and replaces it with some
logging to track down when invariants are violated. (The presumed invariant
here is that we set kWindowSizeDeterminedLater once, when state is set to
kBubbleHidden, and the size stays that way until the bubble transitions to a
different state. If that invariant held, then we wouldn't need to constantly
re-set the size for a hidden bubble. This invariant is being violated on the
GPU bots, so the logging is in place to try to find and fix the cause.)
BUG=454502
BUG=467998
TEST=No visible impact. Status bubble should continue to show when hovering over links and resize properly when the window size is changed.
TEST=No visible impact. Status bubble should continue to show, expand, and hide properly.
Committed: https://crrev.com/da19048a6cd7ebd52e77510d0e787e2ef458b833
Cr-Commit-Position: refs/heads/master@{#327191}
Patch Set 1 #Patch Set 2 : Hacky fix. #Patch Set 3 : Simpler fix/ #
Total comments: 2
Patch Set 4 : Remove unnecessary coordinate conversion. #
Total comments: 1
Messages
Total messages: 16 (4 generated)
|