Bug 610713 - Fix popup menus leaving behind artifacts when using hardware acceleration and a basic Windows theme. r=jmathies

This commit is contained in:
James H 2012-09-13 21:31:53 -04:00
parent 58d3575f7e
commit b78362ef97

View File

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