DescriptionTwo tweaks to avoid invoking ShelfLayoutManager::LayoutShelf unless we
need to. The reason we should only invoke LayoutShelf is that it'll
cancel any animations. Here's the two problematic scenarios I noticed:
. ImageView::SetImage invoked PreferredSizeChanged even if it
didn't. PreferredSizeChanged eventually makes it way to LayoutShelf,
so we should only invoke this if the preferred size actually
changed.
. StatusAreaLayoutManager::SetChildBounds need not do anything if the
size matches.
BUG=120679
TEST=none
R=ben@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129480
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|