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

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

Issue 2393633005: reflow comments in core/imagebitmap,core/html/track (Closed)
Patch Set: Created 4 years, 2 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/TextTrackList.cpp
diff --git a/third_party/WebKit/Source/core/html/track/TextTrackList.cpp b/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
index 3fb23bf5b2644869fb621ddca526fd92cdc7940c..1453d70a6d4b05619c7842c29400ef65ceed0392 100644
--- a/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
+++ b/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
@@ -62,7 +62,9 @@ int TextTrackList::getTrackIndex(TextTrack* textTrack) {
}
int TextTrackList::getTrackIndexRelativeToRenderedTracks(TextTrack* textTrack) {
- // Calculate the "Let n be the number of text tracks whose text track mode is showing and that are in the media element's list of text tracks before track."
+ // Calculate the "Let n be the number of text tracks whose text track mode is
+ // showing and that are in the media element's list of text tracks before
+ // track."
int trackIndex = 0;
for (size_t i = 0; i < m_elementTracks.size(); ++i) {
@@ -100,10 +102,13 @@ int TextTrackList::getTrackIndexRelativeToRenderedTracks(TextTrack* textTrack) {
TextTrack* TextTrackList::anonymousIndexedGetter(unsigned index) {
// 4.8.10.12.1 Text track model
// The text tracks are sorted as follows:
- // 1. The text tracks corresponding to track element children of the media element, in tree order.
- // 2. Any text tracks added using the addTextTrack() method, in the order they were added, oldest first.
- // 3. Any media-resource-specific text tracks (text tracks corresponding to data in the media
- // resource), in the order defined by the media resource's format specification.
+ // 1. The text tracks corresponding to track element children of the media
+ // element, in tree order.
+ // 2. Any text tracks added using the addTextTrack() method, in the order they
+ // were added, oldest first.
+ // 3. Any media-resource-specific text tracks (text tracks corresponding to
+ // data in the media resource), in the order defined by the media resource's
+ // format specification.
if (index < m_elementTracks.size())
return m_elementTracks[index];
@@ -247,10 +252,10 @@ void TextTrackList::scheduleTrackEvent(const AtomicString& eventName,
void TextTrackList::scheduleAddTrackEvent(TextTrack* track) {
// 4.8.10.12.3 Sourcing out-of-band text tracks
// 4.8.10.12.4 Text track API
- // ... then queue a task to fire an event with the name addtrack, that does not
- // bubble and is not cancelable, and that uses the TrackEvent interface, with
- // the track attribute initialized to the text track's TextTrack object, at
- // the media element's textTracks attribute's TextTrackList object.
+ // ... then queue a task to fire an event with the name addtrack, that does
+ // not bubble and is not cancelable, and that uses the TrackEvent interface,
+ // with the track attribute initialized to the text track's TextTrack object,
+ // at the media element's textTracks attribute's TextTrackList object.
scheduleTrackEvent(EventTypeNames::addtrack, track);
}

Powered by Google App Engine
This is Rietveld 408576698