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

Side by Side 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: Tidy up code in places 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 unified diff | Download patch
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/TextTrackCue.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 TextTrack* TextTrackCue::track() const 76 TextTrack* TextTrackCue::track() const
77 { 77 {
78 return m_track; 78 return m_track;
79 } 79 }
80 80
81 void TextTrackCue::setTrack(TextTrack* track) 81 void TextTrackCue::setTrack(TextTrack* track)
82 { 82 {
83 m_track = track; 83 m_track = track;
84 } 84 }
85 85
86 Node* TextTrackCue::owner() const
87 {
88 return m_track ? m_track->owner() : 0;
89 }
90
86 void TextTrackCue::setId(const AtomicString& id) 91 void TextTrackCue::setId(const AtomicString& id)
87 { 92 {
88 if (m_id == id) 93 if (m_id == id)
89 return; 94 return;
90 95
91 cueWillChange(); 96 cueWillChange();
92 m_id = id; 97 m_id = id;
93 cueDidChange(); 98 cueDidChange();
94 } 99 }
95 100
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 if (!active) 173 if (!active)
169 removeDisplayTree(); 174 removeDisplayTree();
170 } 175 }
171 176
172 const AtomicString& TextTrackCue::interfaceName() const 177 const AtomicString& TextTrackCue::interfaceName() const
173 { 178 {
174 return EventTargetNames::TextTrackCue; 179 return EventTargetNames::TextTrackCue;
175 } 180 }
176 181
177 } // namespace WebCore 182 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/TextTrackCue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698