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

Side by Side Diff: Source/core/html/track/TextTrack.cpp

Issue 352603002: Remove the unused Document& argument to the TextTrack constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TextTrack.h ('k') | Source/core/html/track/vtt/VTTRegion.h » ('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 16 matching lines...) Expand all
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #include "config.h" 32 #include "config.h"
33 #include "core/html/track/TextTrack.h" 33 #include "core/html/track/TextTrack.h"
34 34
35 #include "bindings/v8/ExceptionState.h" 35 #include "bindings/v8/ExceptionState.h"
36 #include "bindings/v8/ExceptionStatePlaceholder.h" 36 #include "bindings/v8/ExceptionStatePlaceholder.h"
37 #include "core/dom/Document.h"
38 #include "core/dom/ExceptionCode.h" 37 #include "core/dom/ExceptionCode.h"
39 #include "core/html/HTMLMediaElement.h" 38 #include "core/html/HTMLMediaElement.h"
40 #include "core/html/track/TextTrackCueList.h" 39 #include "core/html/track/TextTrackCueList.h"
41 #include "core/html/track/TextTrackList.h" 40 #include "core/html/track/TextTrackList.h"
42 #include "core/html/track/vtt/VTTRegion.h" 41 #include "core/html/track/vtt/VTTRegion.h"
43 #include "core/html/track/vtt/VTTRegionList.h" 42 #include "core/html/track/vtt/VTTRegionList.h"
44 #include "platform/RuntimeEnabledFeatures.h" 43 #include "platform/RuntimeEnabledFeatures.h"
45 44
46 namespace WebCore { 45 namespace WebCore {
47 46
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 DEFINE_STATIC_LOCAL(const AtomicString, closed, ("hidden", AtomicString::Con structFromLiteral)); 87 DEFINE_STATIC_LOCAL(const AtomicString, closed, ("hidden", AtomicString::Con structFromLiteral));
89 return closed; 88 return closed;
90 } 89 }
91 90
92 const AtomicString& TextTrack::showingKeyword() 91 const AtomicString& TextTrack::showingKeyword()
93 { 92 {
94 DEFINE_STATIC_LOCAL(const AtomicString, ended, ("showing", AtomicString::Con structFromLiteral)); 93 DEFINE_STATIC_LOCAL(const AtomicString, ended, ("showing", AtomicString::Con structFromLiteral));
95 return ended; 94 return ended;
96 } 95 }
97 96
98 TextTrack::TextTrack(Document& document, const AtomicString& kind, const AtomicS tring& label, const AtomicString& language, const AtomicString& id, TextTrackTyp e type) 97 TextTrack::TextTrack(const AtomicString& kind, const AtomicString& label, const AtomicString& language, const AtomicString& id, TextTrackType type)
99 : TrackBase(TrackBase::TextTrack, label, language, id) 98 : TrackBase(TrackBase::TextTrack, label, language, id)
100 , m_cues(nullptr) 99 , m_cues(nullptr)
101 , m_regions(nullptr) 100 , m_regions(nullptr)
102 , m_trackList(nullptr) 101 , m_trackList(nullptr)
103 , m_mode(disabledKeyword()) 102 , m_mode(disabledKeyword())
104 , m_trackType(type) 103 , m_trackType(type)
105 , m_readinessState(NotLoaded) 104 , m_readinessState(NotLoaded)
106 , m_trackIndex(invalidTrackIndex) 105 , m_trackIndex(invalidTrackIndex)
107 , m_renderedTrackIndex(invalidTrackIndex) 106 , m_renderedTrackIndex(invalidTrackIndex)
108 , m_hasBeenConfigured(false) 107 , m_hasBeenConfigured(false)
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 void TextTrack::trace(Visitor* visitor) 441 void TextTrack::trace(Visitor* visitor)
443 { 442 {
444 visitor->trace(m_cues); 443 visitor->trace(m_cues);
445 visitor->trace(m_regions); 444 visitor->trace(m_regions);
446 visitor->trace(m_trackList); 445 visitor->trace(m_trackList);
447 TrackBase::trace(visitor); 446 TrackBase::trace(visitor);
448 EventTargetWithInlineData::trace(visitor); 447 EventTargetWithInlineData::trace(visitor);
449 } 448 }
450 449
451 } // namespace WebCore 450 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrack.h ('k') | Source/core/html/track/vtt/VTTRegion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698