Bug 1406533 - Remove hack for remote popup windows on Linux, r?karlt
This hack was introduced at
Bug 630346 and we should not need it any more.
MozReview-Commit-ID: FsRLY9A1T5O
--- a/layout/xul/nsMenuPopupFrame.cpp
+++ b/layout/xul/nsMenuPopupFrame.cpp
@@ -301,27 +301,16 @@ nsMenuPopupFrame::CreateWidgetForView(ns
static_cast<enum nsBorderStyle>(widgetData.mBorderStyle | eBorderStyle_close);
}
}
}
bool remote = HasRemoteContent();
nsTransparencyMode mode = nsLayoutUtils::GetFrameTransparency(this, this);
-#ifdef MOZ_WIDGET_GTK
- if (remote) {
- // Paradoxically, on Linux, setting the transparency mode to opaque will
- // give us proper transparency for composited popups. The shape-mask-based
- // pseudo-transparency that we use otherwise will render transparent areas
- // as opaque black when compositing is enabled.
- // See bug 630346.
- mode = eTransparencyOpaque;
- }
-#endif
-
nsIContent* parentContent = GetContent()->GetParent();
nsAtom *tag = nullptr;
if (parentContent && parentContent->IsXULElement())
tag = parentContent->NodeInfo()->NameAtom();
widgetData.mHasRemoteContent = remote;
widgetData.mSupportTranslucency = mode == eTransparencyTransparent;
widgetData.mDropShadow = !(mode == eTransparencyTransparent || tag == nsGkAtoms::menulist);
widgetData.mPopupLevel = PopupLevel(widgetData.mNoAutoHide);