Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: third_party/WebKit/Source/core/html/track/CueTimeline.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/track/CueTimeline.cpp
diff --git a/third_party/WebKit/Source/core/html/track/CueTimeline.cpp b/third_party/WebKit/Source/core/html/track/CueTimeline.cpp
index 72e2fa7a71ad55ec57abfe7e7431792fbcfa41c0..5229b7948575b1bb27521648ad66204a8d43334f 100644
--- a/third_party/WebKit/Source/core/html/track/CueTimeline.cpp
+++ b/third_party/WebKit/Source/core/html/track/CueTimeline.cpp
@@ -30,14 +30,14 @@ void CueTimeline::addCues(TextTrack* track, const TextTrackCueList* cues)
updateActiveCues(mediaElement().currentTime());
}
-void CueTimeline::addCue(TextTrack* track, PassRefPtrWillBeRawPtr<TextTrackCue> cue)
+void CueTimeline::addCue(TextTrack* track, RawPtr<TextTrackCue> cue)
{
ASSERT(track->mode() != TextTrack::disabledKeyword());
addCueInternal(cue);
updateActiveCues(mediaElement().currentTime());
}
-void CueTimeline::addCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue> cue)
+void CueTimeline::addCueInternal(RawPtr<TextTrackCue> cue)
{
// Negative duration cues need be treated in the interval tree as
// zero-length cues.
@@ -55,13 +55,13 @@ void CueTimeline::removeCues(TextTrack*, const TextTrackCueList* cues)
updateActiveCues(mediaElement().currentTime());
}
-void CueTimeline::removeCue(TextTrack*, PassRefPtrWillBeRawPtr<TextTrackCue> cue)
+void CueTimeline::removeCue(TextTrack*, RawPtr<TextTrackCue> cue)
{
removeCueInternal(cue);
updateActiveCues(mediaElement().currentTime());
}
-void CueTimeline::removeCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue> cue)
+void CueTimeline::removeCueInternal(RawPtr<TextTrackCue> cue)
{
// Negative duration cues need to be treated in the interval tree as
// zero-length cues.
@@ -112,9 +112,9 @@ static bool eventTimeCueCompare(const std::pair<double, TextTrackCue*>& a, const
return a.second->cueIndex() < b.second->cueIndex();
}
-static PassRefPtrWillBeRawPtr<Event> createEventWithTarget(const AtomicString& eventName, PassRefPtrWillBeRawPtr<EventTarget> eventTarget)
+static RawPtr<Event> createEventWithTarget(const AtomicString& eventName, RawPtr<EventTarget> eventTarget)
{
- RefPtrWillBeRawPtr<Event> event = Event::create(eventName);
+ RawPtr<Event> event = Event::create(eventName);
event->setTarget(eventTarget);
return event.release();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/track/CueTimeline.h ('k') | third_party/WebKit/Source/core/html/track/LoadableTextTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698