Bug 1438024 - remove use of nsIMenuBoxObject and nsIScrollBoxObject (comm-central part). r=bz
authorJorg K <jorgk@jorgk.com>
Thu, 15 Feb 2018 00:25:43 +0100
changeset 31108 752150efa9fb1b1fcf385b06b0a464bb49a9e006
parent 31107 0e75ed347afa706752b3eaf501cf8beff632ab92
child 31109 f8afcb3f18de1d71de1c52386587995a517033bc
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersbz
bugs1438024
Bug 1438024 - remove use of nsIMenuBoxObject and nsIScrollBoxObject (comm-central part). r=bz
calendar/base/content/calendar-multiday-view.xml
mail/base/content/mailWidgets.xml
--- a/calendar/base/content/calendar-multiday-view.xml
+++ b/calendar/base/content/calendar-multiday-view.xml
@@ -2222,17 +2222,17 @@
       ]]></handler>
       <handler event="wheel"><![CDATA[
           if (this.getAttribute("orient") == "vertical") {
               // In vertical view (normal), don't let the parent multiday view
               // handle the scrolling in its bubbling phase. The default action
               // will make the box scroll here.
 
               // TODO We could scroll by the height of exactly one event box, but
-              // since a normal box's boxObject doesn't implement nsIScrollBoxObject,
+              // since a normal box's boxObject doesn't implement ScrollBoxObject,
               // there is no way to scroll by pixels. Using a xul:scrollbox has
               // problems since the equalsize attribute isn't inherited by the
               // inner box, and even if that is worked around, something makes the
               // rotated view look bad in that case.
               event.stopPropagation();
           }
       ]]></handler>
     </handlers>
--- a/mail/base/content/mailWidgets.xml
+++ b/mail/base/content/mailWidgets.xml
@@ -2236,17 +2236,17 @@
             }
           ]]>
         </body>
       </method>
       <method name="onBlurMenuList">
         <parameter name="event"/>
         <body>
           <![CDATA[
-            this.boxObject.QueryInterface(Components.interfaces.nsIMenuBoxObject).openMenu(false);
+            this.boxObject.openMenu(false);
           ]]>
         </body>
       </method>
       <field name="onKeyPressMenuList" readonly="true">
         <![CDATA[
           ({
             self: this,
             tree: this.tree,