• sky@chromium.org's avatar
    Fixes couple of bugs in the TabStrip that could cause tabs to dance · e52866fa
    sky@chromium.org authored
    around. Both only occurred when the active tab width differs from
    inactive tab width (lots-o-tabs).
    . ResizeLayoutTabs() had an optimization that avoided doing anything
      if the width of the first tab hasn't changed. Problems is if the
      first tab is active and inactive tabs have a smaller width than
      active tabs than the width won't have changed but we still need to
      layout. I removed the optimization.
    . If selecting a tab triggers a bounds change the coordinates used by
      tab dragging would be wrong (because they extract them from the
      event, which is in the original coordinates).
    . Needed to tweak rtl code.
    
    BUG=140747
    TEST=see bug, but make sure no weird behavior with tab selection/dragging on
    windows/chrome-os.
    R=ben@chromium.org
    
    
    Review URL: https://chromiumcodereview.appspot.com/11821036
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175991 0039d316-1c4b-4281-b951-d872f2087c98
    e52866fa
tab_drag_controller.cc 74.3 KB