From b78362ef9723d7be2eb48d70b714a200b7c57f37 Mon Sep 17 00:00:00 2001 From: James H Date: Thu, 13 Sep 2012 21:31:53 -0400 Subject: [PATCH] Bug 610713 - Fix popup menus leaving behind artifacts when using hardware acceleration and a basic Windows theme. r=jmathies --- widget/windows/nsWindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp index e86eea3e94f..de54b64b828 100644 --- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -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