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

Unified Diff: Source/core/html/track/TextTrackCue.cpp

Issue 242113012: Make text track and cue wrapper objects dependent on their media element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Consistently use a Node-returning owner() Created 6 years, 8 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: Source/core/html/track/TextTrackCue.cpp
diff --git a/Source/core/html/track/TextTrackCue.cpp b/Source/core/html/track/TextTrackCue.cpp
index ebf262f9b282d4d7db3b120dd822398f4e87a550..2a5f8b7638e6c75d6666828d94f7cbf621fac01a 100644
--- a/Source/core/html/track/TextTrackCue.cpp
+++ b/Source/core/html/track/TextTrackCue.cpp
@@ -35,6 +35,7 @@
#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionStatePlaceholder.h"
#include "core/events/Event.h"
+#include "core/html/HTMLMediaElement.h"
acolwell GONE FROM CHROMIUM 2014/04/21 16:51:16 nit: Why do you need the HTMLMediaElement include?
sof 2014/04/21 18:35:01 No, redundant & removed; thanks (a leftover from a
#include "core/html/track/TextTrack.h"
#include "core/html/track/TextTrackCueList.h"
@@ -83,6 +84,11 @@ void TextTrackCue::setTrack(TextTrack* track)
m_track = track;
}
+Node* TextTrackCue::owner() const
+{
+ return m_track ? m_track->owner() : 0;
+}
+
void TextTrackCue::setId(const AtomicString& id)
{
if (m_id == id)

Powered by Google App Engine
This is Rietveld 408576698