зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset f2bf27c13c37 (bug 882718)
This commit is contained in:
Родитель
33dc9fca70
Коммит
c13a947fcf
|
@ -125,19 +125,5 @@ TextTrackCueList::SetCuesInactive()
|
|||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsWrapperCache.h"
|
||||
#include "mozilla/ErrorResult.h"
|
||||
#include "Intervals.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
@ -57,9 +56,6 @@ public:
|
|||
|
||||
void SetCuesInactive();
|
||||
|
||||
already_AddRefed<TextTrackCueList>
|
||||
GetCueListByTimeInterval(media::Interval<double>& aInterval);
|
||||
|
||||
private:
|
||||
~TextTrackCueList();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче