зеркало из https://github.com/mozilla/gecko-dev.git
Bug 888765 - Avoid querying for titlebar info during toolkit window creation, causes problems on Win8 with browser startup. r=bbondy
This commit is contained in:
Родитель
46e43df241
Коммит
e0b0bdeb6e
|
@ -599,8 +599,9 @@ nsWindow::Create(nsIWidget *aParent,
|
|||
|
||||
// Query for command button metric data for rendering the titlebar. We
|
||||
// only do this once on the first window.
|
||||
if (!nsUXThemeData::sTitlebarInfoPopulatedThemed ||
|
||||
!nsUXThemeData::sTitlebarInfoPopulatedAero) {
|
||||
if (mWindowType == eWindowType_toplevel &&
|
||||
(!nsUXThemeData::sTitlebarInfoPopulatedThemed ||
|
||||
!nsUXThemeData::sTitlebarInfoPopulatedAero)) {
|
||||
nsUXThemeData::UpdateTitlebarInfo(mWnd);
|
||||
}
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче