Bug 588657 - Console and Inspector panel chrome flashes on windows 7. (Initial patch: Steve Glardon, Updates: jimm) r=vlad, a=blocking-beta6.

This commit is contained in:
Jim Mathies 2010-09-07 12:30:28 -05:00
parent fb431a2f1c
commit c2f369a13d

View File

@ -1279,7 +1279,8 @@ void nsWindow::ClearThemeRegion()
{ {
#ifndef WINCE #ifndef WINCE
if (nsUXThemeData::sIsVistaOrLater && !HasGlass() && if (nsUXThemeData::sIsVistaOrLater && !HasGlass() &&
mWindowType == eWindowType_popup && (mPopupType == ePopupTypeTooltip || mPopupType == ePopupTypePanel)) { (mWindowType == eWindowType_popup && !IsPopupWithTitleBar() &&
(mPopupType == ePopupTypeTooltip || mPopupType == ePopupTypePanel))) {
SetWindowRgn(mWnd, NULL, false); SetWindowRgn(mWnd, NULL, false);
} }
#endif #endif
@ -1294,7 +1295,8 @@ void nsWindow::SetThemeRegion()
// state values from nsNativeThemeWin's GetThemePartAndState, but currently windows that // state values from nsNativeThemeWin's GetThemePartAndState, but currently windows that
// change shape based on state haven't come up. // change shape based on state haven't come up.
if (nsUXThemeData::sIsVistaOrLater && !HasGlass() && if (nsUXThemeData::sIsVistaOrLater && !HasGlass() &&
mWindowType == eWindowType_popup && (mPopupType == ePopupTypeTooltip || mPopupType == ePopupTypePanel)) { (mWindowType == eWindowType_popup && !IsPopupWithTitleBar() &&
(mPopupType == ePopupTypeTooltip || mPopupType == ePopupTypePanel))) {
HRGN hRgn = nsnull; HRGN hRgn = nsnull;
RECT rect = {0,0,mBounds.width,mBounds.height}; RECT rect = {0,0,mBounds.width,mBounds.height};