Fix BrowserFrameWin artifact on opaque to glass frame changes.
Fix BrowserFrameWin artifact on opaque to glass frame changes.

The problem when switching from an opaque frame to a glass frame:
Calling UpdateDWMFrame() first uses stale glass inset values.
(from the old OpaqueBrowserFrameView's tabstrip bounds, yielding 45px on top)
HandleFrameChanged() then sets the new GlassBrowserFrameView with a larger top inset.
(but doesn't update the dwm glass inset until the next UpdateDWMFrame, for 49px on top)

Swapping the call order works without any apparent regressions.
(this puts the new frame in place before updating the dwm glass insets)
See http://crrev.com/29164 for a contradictory change that may be outdated.

Also, use the more convenient IsFullscreen() call, no behavior change.

BUG=156982
TEST=No black bar switching from theme->glass chrome on Windows; no regressions.
R=ben@chromium.org

Review URL: https://codereview.chromium.org/11273107

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

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