| Index: Source/core/html/track/InbandTextTrack.cpp
|
| diff --git a/Source/core/html/track/InbandTextTrack.cpp b/Source/core/html/track/InbandTextTrack.cpp
|
| index 1d5cbe37213f0f0a9376ec1d22de0e71bab7f858..95e2b8789e199d6cc65613d478d0775a634b53e8 100644
|
| --- a/Source/core/html/track/InbandTextTrack.cpp
|
| +++ b/Source/core/html/track/InbandTextTrack.cpp
|
| @@ -27,6 +27,7 @@
|
| #include "core/html/track/InbandTextTrack.h"
|
|
|
| #include "bindings/v8/ExceptionStatePlaceholder.h"
|
| +#include "core/html/HTMLMediaElement.h"
|
| #include "core/html/track/vtt/VTTCue.h"
|
| #include "platform/Logging.h"
|
| #include "public/platform/WebInbandTextTrack.h"
|
| @@ -38,9 +39,9 @@ using blink::WebString;
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<InbandTextTrack> InbandTextTrack::create(Document& document, WebInbandTextTrack* webTrack)
|
| +PassRefPtrWillBeRawPtr<InbandTextTrack> InbandTextTrack::create(Document& document, WebInbandTextTrack* webTrack)
|
| {
|
| - return adoptRef(new InbandTextTrack(document, webTrack));
|
| + return adoptRefWillBeRefCountedGarbageCollected(new InbandTextTrack(document, webTrack));
|
| }
|
|
|
| InbandTextTrack::InbandTextTrack(Document& document, WebInbandTextTrack* webTrack)
|
| @@ -97,7 +98,9 @@ void InbandTextTrack::setTrackList(TextTrackList* trackList)
|
|
|
| void InbandTextTrack::addWebVTTCue(double start, double end, const WebString& id, const WebString& content, const WebString& settings)
|
| {
|
| - RefPtr<VTTCue> cue = VTTCue::create(document(), start, end, content);
|
| + HTMLMediaElement* owner = mediaElement();
|
| + ASSERT(owner);
|
| + RefPtrWillBeRawPtr<VTTCue> cue = VTTCue::create(owner->document(), start, end, content);
|
| cue->setId(id);
|
| cue->parseSettings(settings);
|
| addCue(cue);
|
|
|