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:
Jim Mathies 2013-07-06 05:53:20 -05:00
Родитель 46e43df241
Коммит e0b0bdeb6e
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;