Changeset 139932 in webkit


Ignore:
Timestamp:
Jan 16, 2013 3:57:50 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Cues not rendered when they should be
https://bugs.webkit.org/show_bug.cgi?id=106943

Patch by Victor Carbune <vcarbune@chromium.org> on 2013-01-16
Reviewed by Eric Carlson.

Source/WebCore:

Forced rendering update, even if the active set of cues didn't change.

Test: media/track/track-cue-rendering-mode-changed.html

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::updateActiveTextTrackCues): If exiting early,
update the cues rendered by the text track container.
(WebCore::HTMLMediaElement::textTrackModeChanged): Trigger update of the
re-checking the active cues and render the ones not yet on screen.

LayoutTests:

  • media/track/track-cue-rendering-mode-changed-expected.txt: Added.
  • media/track/track-cue-rendering-mode-changed.html: Added.
  • media/video-controls-captions-expected.txt: Updated.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r139917 r139932  
     12013-01-16  Victor Carbune  <vcarbune@chromium.org>
     2
     3        Cues not rendered when they should be
     4        https://bugs.webkit.org/show_bug.cgi?id=106943
     5
     6        Reviewed by Eric Carlson.
     7
     8        * media/track/track-cue-rendering-mode-changed-expected.txt: Added.
     9        * media/track/track-cue-rendering-mode-changed.html: Added.
     10        * media/video-controls-captions-expected.txt: Updated.
     11
    1122013-01-16  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/LayoutTests/media/video-controls-captions-expected.txt

    r139547 r139932  
    1313EXPECTED (video.textTracks.length == '1') OK
    1414EXPECTED (video.textTracks[0].mode == 'disabled') OK
    15 Failed to find text track container element
     15No text track cue with display id '-webkit-media-text-track-display' is currently visible
    1616
    1717** Captions track should load and captions should become visible after button is clicked **
  • trunk/Source/WebCore/ChangeLog

    r139930 r139932  
     12013-01-16  Victor Carbune  <vcarbune@chromium.org>
     2
     3        Cues not rendered when they should be
     4        https://bugs.webkit.org/show_bug.cgi?id=106943
     5
     6        Reviewed by Eric Carlson.
     7
     8        Forced rendering update, even if the active set of cues didn't change.
     9
     10        Test: media/track/track-cue-rendering-mode-changed.html
     11
     12        * html/HTMLMediaElement.cpp:
     13        (WebCore::HTMLMediaElement::updateActiveTextTrackCues): If exiting early,
     14        update the cues rendered by the text track container.
     15        (WebCore::HTMLMediaElement::textTrackModeChanged): Trigger update of the
     16        re-checking the active cues and render the ones not yet on screen.
     17
    1182013-01-16  Benjamin Poulain  <bpoulain@apple.com>
    219
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r139899 r139932  
    11671167    }
    11681168
    1169     if (!activeSetChanged)
    1170         return;
     1169    if (!activeSetChanged) {
     1170        // Even though the active set has not changed, it is possible that the
     1171        // the mode of a track has changed from 'hidden' to 'showing' and the
     1172        // cues have not yet been rendered.
     1173        if (hasMediaControls())
     1174            mediaControls()->updateTextTrackDisplay();
     1175
     1176        return;
     1177    }
    11711178
    11721179    // 7 - If the time was reached through the usual monotonic increase of the
     
    13621369
    13631370    configureTextTrackDisplay();
     1371    updateActiveTextTrackCues(currentTime());
    13641372}
    13651373
Note: See TracChangeset for help on using the changeset viewer.