зеркало из https://github.com/mozilla/gecko-dev.git
Bug 514076 Fennec produces a error report with enable-faststart and Screen rotation. r=dougt.
This commit is contained in:
Родитель
083cdbf061
Коммит
60a7ed62b0
|
@ -5632,7 +5632,9 @@ PRBool nsWindow::OnHotKey(WPARAM wParam, LPARAM lParam)
|
|||
|
||||
void nsWindow::OnSettingsChange(WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
nsWindowGfx::OnSettingsChangeGfx(wParam);
|
||||
if (mWindowType == eWindowType_dialog ||
|
||||
mWindowType == eWindowType_toplevel )
|
||||
nsWindowGfx::OnSettingsChangeGfx(wParam);
|
||||
}
|
||||
|
||||
// Scrolling helper function for handling plugins.
|
||||
|
|
|
@ -240,7 +240,8 @@ void nsWindowGfx::OnSettingsChangeGfx(WPARAM wParam)
|
|||
oldSize.height * oldSize.width)
|
||||
nsWindow::sSharedSurfaceData = nsnull;
|
||||
|
||||
glpDD->RestoreAllSurfaces();
|
||||
if(glpDD)
|
||||
glpDD->RestoreAllSurfaces();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче