Bug 1455052 followup. Re-remove the Event ToSupports/ToCanonicalSupports methods. r=bzbarsky
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 20 Apr 2018 15:55:17 -0400
changeset 414783 5cc5665abf82c6b5480145a17e1927ae35118cdd
parent 414782 30ed797c2454b1f5f259f1c26f85bd7a62380ef5
child 414784 39ccabfd7d0712a45335325cb24b0e0b2ba498c7
child 414845 8758f6f2e9fb73c70ed940364d5a8ecbf0dbc17f
push id33876
push userdluca@mozilla.com
push dateFri, 20 Apr 2018 23:00:46 +0000
treeherdermozilla-central@39ccabfd7d07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1455052, 1452981
milestone61.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 1455052 followup. Re-remove the Event ToSupports/ToCanonicalSupports methods. r=bzbarsky These are not needed, and they were removed by bug 1452981, but then that was backed out. They obviously don't compile as written with nsIDOMEvent removed, leading to a CLOSED TREE MozReview-Commit-ID: FH5QqKEgalP
dom/events/Event.h
--- a/dom/events/Event.h
+++ b/dom/events/Event.h
@@ -417,26 +417,14 @@ private:
   bool mOriginalWantsPopupControlCheck;
 };
 
 NS_DEFINE_STATIC_IID_ACCESSOR(Event, NS_EVENT_IID)
 
 } // namespace dom
 } // namespace mozilla
 
-inline nsISupports*
-ToSupports(mozilla::dom::Event* e)
-{
-  return static_cast<nsIDOMEvent*>(e);
-}
-
-inline nsISupports*
-ToCanonicalSupports(mozilla::dom::Event* e)
-{
-  return static_cast<nsIDOMEvent*>(e);
-}
-
 already_AddRefed<mozilla::dom::Event>
 NS_NewDOMEvent(mozilla::dom::EventTarget* aOwner,
                nsPresContext* aPresContext,
                mozilla::WidgetEvent* aEvent);
 
 #endif // mozilla_dom_Event_h_