merge backout. a=backout

This commit is contained in:
Jim Mathies 2010-09-09 10:50:01 -05:00
commit f0a88a37d6

View File

@ -2746,18 +2746,11 @@ nsWindow::MakeFullScreen(PRBool aFullScreen)
UpdateNonClientMargins();
// Prevent window updates during the transition.
DWORD style = GetWindowLong(mWnd, GWL_STYLE);
SetWindowLong(mWnd, GWL_STYLE, style & ~WS_VISIBLE);
// Will call hide chrome, reposition window. Note this will
// also cache dimensions for restoration, so it should only
// be called once per fullscreen request.
nsresult rv = nsBaseWidget::MakeFullScreen(aFullScreen);
style = GetWindowLong(mWnd, GWL_STYLE);
SetWindowLong(mWnd, GWL_STYLE, style | WS_VISIBLE);
// Let the dom know via web shell window
nsSizeModeEvent event(PR_TRUE, NS_SIZEMODE, this);
event.mSizeMode = mSizeMode;