Fixes bug during tab close that results in all tabs after closed tab getting shifted to the left by one pixel. Forcing another layout (by resizing window or such) results in everything fixing itself.
Fixes bug during tab close that results in all tabs after closed tab
getting shifted to the left by one pixel. Forcing another layout (by
resizing window or such) results in everything fixing itself.

When closing a tab we resize the closed tabs width to
Tab::GetMinimumUnselectedSize().width(). Subsequent tabs are
positioned at width +
kTabHOffset. Tab::GetMinimumUnselectedSize().width() is 15, where as
kTabHOffset is -16, resulting in all subsequent tabs shifting to the
left by 1.

You'll have to tell me if this is the right fix. I suspect this could
also be fixed by changing Tab::GetMinimumUnselectedSize().width() to
be kTabHOffset, but I'm not sure what the effects of that are. We
could also enforce next x not shifting back in AnimationLayout

BUG=none
TEST=create two tabs, select the first and close it. Resize the window
a bit and make sure the tab doesn't shift to the right.

Review URL: http://codereview.chromium.org/13625

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@6525 0039d316-1c4b-4281-b951-d872f2087c98

chuan9/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,markYoungH/chromium.src,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,patrickm/chromium.src,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,ltilve/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,keishi/chromium,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,robclark/chromium,anirudhSK/chromium,jaruba/chromium.src,ltilve/chromium,Chilledheart/chromium,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,ltilve/chromium,dednal/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,keishi/chromium,Jonekee/chromium.src,keishi/chromium,hgl888/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,robclark/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,Fireblend/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,Just-D/chromium-1,mogoweb/chromium-crosswalk,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,krieger-od/nwjs_chromium.src,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,zcbenz/cefode-chromium,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,ltilve/chromium,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,rogerwang/chromium,Chilledheart/chromium,Jonekee/chromium.src,timopulkkinen/BubbleFish,patrickm/chromium.src,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,robclark/chromium,anirudhSK/chromium,nacl-webkit/chrome_deps,dednal/chromium.src,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,robclark/chromium,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,M4sse/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,keishi/chromium,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,dednal/chromium.src,hgl888/chromium-crosswalk,rogerwang/chromium,Jonekee/chromium.src,Fireblend/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,Just-D/chromium-1,jaruba/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,ltilve/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,nacl-webkit/chrome_deps,dushu1203/chromium.src,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,robclark/chromium,anirudhSK/chromium,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,rogerwang/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,dushu1203/chromium.src,ChromiumWebApps/chromium,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,hujiajie/pa-chromium,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,Chilledheart/chromium,M4sse/chromium.src,patrickm/chromium.src,robclark/chromium,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,dednal/chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,anirudhSK/chromium,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,markYoungH/chromium.src,keishi/chromium,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,ondra-novak/chromium.src,zcbenz/cefode-chromium,M4sse/chromium.src,M4sse/chromium.src,timopulkkinen/BubbleFish,patrickm/chromium.src,fujunwei/chromium-crosswalk,dednal/chromium.src,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,hujiajie/pa-chromium,keishi/chromium,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,rogerwang/chromium,dednal/chromium.src,keishi/chromium,anirudhSK/chromium,littlstar/chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,chuan9/chromium-crosswalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,patrickm/chromium.src,rogerwang/chromium,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,robclark/chromium,Pluto-tv/chromium-crosswalk,robclark/chromium,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,ltilve/chromium,ltilve/chromium,nacl-webkit/chrome_deps,rogerwang/chromium,robclark/chromium,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,rogerwang/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,rogerwang/chromium,krieger-od/nwjs_chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,nacl-webkit/chrome_deps,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,keishi/chromium,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,littlstar/chromium.src,chuan9/chromium-crosswalk,dushu1203/chromium.src,keishi/chromium,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,keishi/chromium,ltilve/chromium,keishi/chromium,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,littlstar/chromium.src,Chilledheart/chromium,zcbenz/cefode-chromium,Jonekee/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,patrickm/chromium.src,littlstar/chromium.src,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,ondra-novak/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,robclark/chromium,ChromiumWebApps/chromium,Just-D/chromium-1,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,patrickm/chromium.src,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src