-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support negative timestamps of TextTrackCue
https://bugs.webkit.org/show_bug.cgi?id=93143 rdar://problem/113035924 Reviewed by Eric Carlson. This patch aligns WebKit with Blink / Chromium, Gecko / Firefox and Web-Spec. Merge: https://chromium-review.googlesource.com/c/chromium/src/+/863270 Ensure proper behaviour for negative timestamps of TextTrackCue. 1. Cues with negative startTime should become active from 0s. 2. Cues with negative startTime and endTime should never be active. Web-Spec References: whatwg/html@af1b8e2 and https://www.w3.org/Bugs/Public/show_bug.cgi?id=18480 * Source/WebCore/html/track/TextTrack.cpp: (TextTrack::addCue): Remove 'TODO' and greater then 'zeroTime' case * Source/WebCore/html/track/TextTrackCue.cpp: (TextTrackCue::setStartTime): Remove 'TODO' and remove 'value' less than 0 early return case (TextTrackCue::setEndTime): Ditto * Source/WebCore/html/track/TextTrackCueList.cpp: (TextTrackCueList::add): Remove 'ASSERT' for 'non-negative' case * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/track-cue-negative-timestamp-events-expected.txt: Rebaselined * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/track/track-element/track-cue-negative-duration-expected.txt: Rebaselined * LayoutTests/media/track/track-cue-negative-timestamp.html: Removed in favor of WPT * LayoutTests/media/track/track-cue-negative-timestamp-expected.txt: Ditto Canonical link: https://commits.webkit.org/267042@main
- Loading branch information
1 parent
b93351e
commit fb0116d
Showing
7 changed files
with
7 additions
and
80 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...edded-content/media-elements/track/track-element/track-cue-negative-duration-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
|
||
FAIL Enter, Exit events for a cue with negative duration assert_equals: expected 1 but got 0 | ||
PASS Enter, Exit events for a cue with negative duration | ||
|
2 changes: 1 addition & 1 deletion
2
...ntent/media-elements/track/track-element/track-cue-negative-timestamp-events-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
|
||
FAIL Enter, Exit events for cues with negative timestamps assert_equals: expected 1 but got 0 | ||
PASS Enter, Exit events for cues with negative timestamps | ||
|
24 changes: 0 additions & 24 deletions
24
LayoutTests/media/track/track-cue-negative-timestamp-expected.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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