Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Mac, iOS] Captions are appearing multiple times during repeated vide…
…o play through https://bugs.webkit.org/show_bug.cgi?id=135680 Source/WebCore: <rdar://problem/17926802> Reviewed by Eric Carlson. Test: media/track/track-in-band-cues-added-once.html Revert TextTrackCueGeneric::isOrderedBefore logic to its original form, and add a new 'isOrderedBeforeDuringDisplay' for the special case of displaying captions. * html/shadow/MediaControlElements.cpp: (WebCore::compareCueIntervalForDisplay): Added helper function. (WebCore::MediaControlTextTrackContainerElement::updateDisplay): Use the new 'isOrderedBeforeDuringDisplay' to order the cues for display. * html/track/TextTrackCue.h: (WebCore::TextTrackCue::isOrderedBeforeDuringDisplay): Added. This just calls the existing 'isOrderedBefore' method. * html/track/TextTrackCueGeneric.cpp: (WebCore::TextTrackCueGeneric::isOrderedBefore): Revert to logic used prior to r171700. (WebCore::TextTrackCueGeneric::isOrderedBeforeDuringDisplay): New method that implements the behavior in r171700. * html/track/TextTrackCueGeneric.h: LayoutTests: <rdar://problem/17926802> Reviewed by Eric Carlson. Reactivate the 'track-in-band-cues-added-once.html' test. We would have caught this bug immediately if the test had been enabled. * platform/mac/TestExpectations: Turn 'track-in-band-cues-added-once.html' back on. Canonical link: https://commits.webkit.org/153574@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172213 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters