Changeset 152318 in webkit


Ignore:
Timestamp:
Jul 2, 2013 1:28:57 PM (11 years ago)
Author:
eric.carlson@apple.com
Message:

[Mac] .webkitClosedCaptionsVisible doesn't work with "Automatic" caption mode
https://bugs.webkit.org/show_bug.cgi?id=118319

Reviewed by Darin Adler.

Source/WebCore:

Test: media/track/track-legacyapi-with-automatic-mode.html

  • page/CaptionUserPreferencesMediaAF.cpp:

(WebCore::CaptionUserPreferencesMediaAF::textTrackSelectionScore): Don't apply "automatic"

logic when captions were enabled with .webkitClosedCaptionsVisible.

LayoutTests:

  • media/track/track-legacyapi-with-automatic-mode-expected.txt: Added.
  • media/track/track-legacyapi-with-automatic-mode.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r152313 r152318  
     12013-07-02  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [Mac] .webkitClosedCaptionsVisible doesn't work with "Automatic" caption mode
     4        https://bugs.webkit.org/show_bug.cgi?id=118319
     5
     6        Reviewed by Darin Adler.
     7
     8        * media/track/track-legacyapi-with-automatic-mode-expected.txt: Added.
     9        * media/track/track-legacyapi-with-automatic-mode.html: Added.
     10
    1112013-06-26  Robert Hogan  <robert@webkit.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r152315 r152318  
     12013-07-02  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [Mac] .webkitClosedCaptionsVisible doesn't work with "Automatic" caption mode
     4        https://bugs.webkit.org/show_bug.cgi?id=118319
     5
     6        Reviewed by Darin Adler.
     7
     8        Test: media/track/track-legacyapi-with-automatic-mode.html
     9
     10        * page/CaptionUserPreferencesMediaAF.cpp:
     11        (WebCore::CaptionUserPreferencesMediaAF::textTrackSelectionScore): Don't apply "automatic"
     12            logic when captions were enabled with .webkitClosedCaptionsVisible.
     13
    1142013-07-02  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp

    r152037 r152318  
    681681    Vector<String> userPreferredCaptionLanguages = preferredLanguages();
    682682
    683     if (displayMode == Automatic || trackHasOnlyForcedSubtitles) {
     683    if ((displayMode == Automatic && !legacyOverride) || trackHasOnlyForcedSubtitles) {
    684684
    685685        if (!mediaElement || !mediaElement->player())
Note: See TracChangeset for help on using the changeset viewer.