mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 610713 - Fix popup menus leaving behind artifacts when using hardware acceleration and a basic Windows theme. r=jmathies
This commit is contained in:
parent
22f368b019
commit
1e0bf4e944
@ -481,8 +481,13 @@ nsWindow::Create(nsIWidget *aParent,
|
||||
DWORD extendedStyle = WindowExStyle();
|
||||
|
||||
if (mWindowType == eWindowType_popup) {
|
||||
if (!aParent)
|
||||
if (!aParent) {
|
||||
parent = NULL;
|
||||
}
|
||||
|
||||
if (mPopupType == ePopupTypeMenu && aInitData->mDropShadow) {
|
||||
extendedStyle |= WS_EX_COMPOSITED;
|
||||
}
|
||||
|
||||
if (aInitData->mIsDragPopup) {
|
||||
// This flag makes the window transparent to mouse events
|
||||
|
Loading…
Reference in New Issue
Block a user