Bug 1533085 - Fix some usage of display in XBL bindings in thunderbird. r=npotb
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 13 Mar 2019 19:00:08 +0100
changeset 521779 9d23034770a6f4c1649f54d6928ba22a7767074c
parent 521701 fcdfe2be33a5fa5a531d18f3f4302aa48df5f3e0
child 521780 85d3d2603b8f8f90e658ae5ef4a728b450c8bb81
child 521831 12b945b6f70730a80f53934ff763ad16c41845b5
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnpotb
bugs1533085
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1533085 - Fix some usage of display in XBL bindings in thunderbird. r=npotb
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -4026,16 +4026,23 @@ nsCSSFrameConstructor::FindXULButtonData
                                          ComputedStyle&) {
   static const FrameConstructionData sXULMenuData =
       SIMPLE_XUL_FCDATA(NS_NewMenuFrame);
   if (aElement.AttrValueIs(kNameSpaceID_None, nsGkAtoms::type,
                            nsGkAtoms::menu, eCaseMatters)) {
     return &sXULMenuData;
   }
 
+#  ifdef MOZ_THUNDERBIRD
+  if (aElement.AttrValueIs(kNameSpaceID_None, nsGkAtoms::type,
+                           NS_LITERAL_STRING("menu-button"), eCaseMatters)) {
+    return &sXULMenuData;
+  }
+#  endif
+
   static const FrameConstructionData sXULButtonData =
       SCROLLABLE_XUL_FCDATA(NS_NewButtonBoxFrame);
   return &sXULButtonData;
 }
 
 /* static */
 const nsCSSFrameConstructor::FrameConstructionData*
 nsCSSFrameConstructor::FindXULLabelData(const Element& aElement,