mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
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:
parent
fb431a2f1c
commit
c2f369a13d
@ -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};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user