diff --git a/dom/media/Intervals.h b/dom/media/Intervals.h index 1ffa8c0f7489..baa4ac6a2314 100644 --- a/dom/media/Intervals.h +++ b/dom/media/Intervals.h @@ -652,6 +652,18 @@ public: return mIntervals.end(); } + ElemType& LastInterval() + { + MOZ_ASSERT(!mIntervals.IsEmpty()); + return mIntervals.LastElement(); + } + + const ElemType& LastInterval() const + { + MOZ_ASSERT(!mIntervals.IsEmpty()); + return mIntervals.LastElement(); + } + protected: ContainerType mIntervals;