Backed out changeset 10d579e5dec1 (bug 1270916)
authorIris Hsiao <ihsiao@mozilla.com>
Wed, 16 Nov 2016 14:42:12 +0800
changeset 322813 13d08c4e45d9fab986edfc0aebe26c5d32b4f944
parent 322812 eec10be4f0990e97543d3c12b0415ec50a798c21
child 322814 b69098cb9ea9e073f4d852750b44815cd9500bc3
push id30961
push userkwierso@gmail.com
push dateThu, 17 Nov 2016 01:08:03 +0000
treeherdermozilla-central@c27117f67fa3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1270916
milestone53.0a1
backs out10d579e5dec1099b3c7016c7b03e9199acf9c1f0
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
Backed out changeset 10d579e5dec1 (bug 1270916) CLOSED TREE
accessible/base/AccEvent.cpp
accessible/base/AccEvent.h
--- a/accessible/base/AccEvent.cpp
+++ b/accessible/base/AccEvent.cpp
@@ -37,33 +37,17 @@ AccEvent::AccEvent(uint32_t aEventType, 
     mIsFromUserInput = EventStateManager::IsHandlingUserInput();
   else
     mIsFromUserInput = aIsFromUserInput == eFromUserInput ? true : false;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 // AccEvent cycle collection
 
-NS_IMPL_CYCLE_COLLECTION_CLASS(AccEvent)
-
-NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(AccEvent)
-  NS_IMPL_CYCLE_COLLECTION_UNLINK(mAccessible)
-  if (AccTreeMutationEvent* tmEvent = downcast_accEvent(tmp)) {
-    tmEvent->SetNextEvent(nullptr);
-    tmEvent->SetPrevEvent(nullptr);
-  }
-NS_IMPL_CYCLE_COLLECTION_UNLINK_END
-
-NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(AccEvent)
-  NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mAccessible)
-  if (AccTreeMutationEvent* tmEvent = downcast_accEvent(tmp)) {
-    CycleCollectionNoteChild(cb, tmEvent->NextEvent(), "mNext");
-    CycleCollectionNoteChild(cb, tmEvent->PrevEvent(), "mPrevEvent");
-  }
-NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
+NS_IMPL_CYCLE_COLLECTION(AccEvent, mAccessible)
 
 NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(AccEvent, AddRef)
 NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(AccEvent, Release)
 
 ////////////////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////////////////
 // AccTextChangeEvent
 ////////////////////////////////////////////////////////////////////////////////
--- a/accessible/base/AccEvent.h
+++ b/accessible/base/AccEvent.h
@@ -214,25 +214,16 @@ public:
     AccEvent(aEventType, aTarget, eAutoDetect, eCoalesceReorder) {}
 
   // Event
   static const EventGroup kEventGroup = eTreeMutationEvent;
   virtual unsigned int GetEventGroups() const override
   {
     return AccEvent::GetEventGroups() | (1U << eTreeMutationEvent);
   }
-
-  void SetNextEvent(AccTreeMutationEvent* aNext) { mNextEvent = aNext; }
-  void SetPrevEvent(AccTreeMutationEvent* aPrev) { mPrevEvent = aPrev; }
-  AccTreeMutationEvent* NextEvent() const { return mNextEvent; }
-  AccTreeMutationEvent* PrevEvent() const { return mPrevEvent; }
-
-private:
-  RefPtr<AccTreeMutationEvent> mNextEvent;
-  RefPtr<AccTreeMutationEvent> mPrevEvent;
 };
 
 /**
  * Base class for show and hide accessible events.
  */
 class AccMutationEvent: public AccTreeMutationEvent
 {
 public: