Backed out changeset f2bf27c13c37 (bug 882718)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 31 May 2016 18:54:41 +0200
changeset 340783 21c996f834375ada99da02b1eb9e1d266bb48c90
parent 340782 acf1cdd99c985fe3b1f197ced9d4b320b2f4938e
child 340784 767ae8716c5b411b0e302494d5a5afc068ebf25c
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs882718
milestone49.0a1
backs outf2bf27c13c370a06e62934d811cf6a42115c97c8
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 f2bf27c13c37 (bug 882718)
dom/media/TextTrackCueList.cpp
dom/media/TextTrackCueList.h
--- a/dom/media/TextTrackCueList.cpp
+++ b/dom/media/TextTrackCueList.cpp
@@ -120,24 +120,10 @@ TextTrackCueList::GetArray(nsTArray<RefP
 void
 TextTrackCueList::SetCuesInactive()
 {
   for(uint32_t i = 0; i < mList.Length(); ++i) {
     mList[i]->SetActive(false);
   }
 }
 
-already_AddRefed<TextTrackCueList>
-TextTrackCueList::GetCueListByTimeInterval(media::Interval<double>& aInterval)
-{
-  RefPtr<TextTrackCueList> output = new TextTrackCueList(mParent);
-  for (uint32_t i = 0; i < mList.Length(); ++i) {
-    TextTrackCue* cue = mList[i];
-    if (cue->StartTime() <= aInterval.mEnd &&
-        aInterval.mStart <= cue->EndTime()) {
-      output->AddCue(*cue);
-    }
-  }
-  return output.forget();
-}
-
 } // namespace dom
 } // namespace mozilla
--- a/dom/media/TextTrackCueList.h
+++ b/dom/media/TextTrackCueList.h
@@ -7,17 +7,16 @@
 #ifndef mozilla_dom_TextTrackCueList_h
 #define mozilla_dom_TextTrackCueList_h
 
 #include "nsTArray.h"
 #include "nsCOMPtr.h"
 #include "nsCycleCollectionParticipant.h"
 #include "nsWrapperCache.h"
 #include "mozilla/ErrorResult.h"
-#include "Intervals.h"
 
 namespace mozilla {
 namespace dom {
 
 class TextTrackCue;
 
 class TextTrackCueList final : public nsISupports
                              , public nsWrapperCache
@@ -52,19 +51,16 @@ public:
   void AddCue(TextTrackCue& aCue);
   void RemoveCue(TextTrackCue& aCue, ErrorResult& aRv);
   void RemoveCueAt(uint32_t aIndex);
   void RemoveAll();
   void GetArray(nsTArray<RefPtr<TextTrackCue> >& aCues);
 
   void SetCuesInactive();
 
-  already_AddRefed<TextTrackCueList>
-  GetCueListByTimeInterval(media::Interval<double>& aInterval);
-
 private:
   ~TextTrackCueList();
 
   nsCOMPtr<nsISupports> mParent;
 
   // A sorted list of TextTrackCues sorted by earliest start time. If the start
   // times are equal then it will be sorted by end time, earliest first.
   nsTArray< RefPtr<TextTrackCue> > mList;