• Dana Fried's avatar
    Allow account icon container to flex. · 3909443b
    Dana Fried authored
    This allows the text associated with the account icon in the toolbar to
    elide when displaying the entire text would cause the omnibox to become
    unusably small or force the kebab/wrench menu icon off the side of the
    toolbar and out of view (see attached bug).
    
    We also include some changes in view and label_button so that we don't
    accidentally report a stale size. The change to caching only text size
    is because that's the expensive part of the operation - the rest is
    relatively simple math.
    
    Bug: 1012681
    Change-Id: I10db6848a317dfa120472b749bcd77762ce6f62b
    Fixes: 1012681
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876128
    Commit-Queue: Dana Fried <dfried@chromium.org>
    Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
    Reviewed-by: default avatarCaroline Rising <corising@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#709220}
    3909443b
view.cc 88.7 KB