Back out changeset 71d0179e0ad9 (bug 634586)

This commit is contained in:
Ehsan Akhgari 2011-03-28 13:47:53 -04:00
parent db0e06d061
commit 32ab4d0dad

View File

@ -4407,19 +4407,8 @@ nsGlobalWindow::SetFullScreen(PRBool aFullScreen)
mFullScreen = aFullScreen;
nsCOMPtr<nsIWidget> widget = GetMainWidget();
if (widget) {
PRBool visible;
widget->IsVisible(visible);
if (visible && aFullScreen)
widget->Show(PR_FALSE);
if (widget)
widget->MakeFullScreen(aFullScreen);
if (visible && aFullScreen) {
widget->Show(PR_TRUE);
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
if (fm)
fm->SetActiveWindow(this);
}
}
return NS_OK;
}