Changeset 149502 in webkit


Ignore:
Timestamp:
May 2, 2013 3:57:35 PM (11 years ago)
Author:
eric.carlson@apple.com
Message:

[Mac] caption track menu includes "easy to read" in-band tracks twice
https://bugs.webkit.org/show_bug.cgi?id=115529

Reviewed by Dean Jackson.

  • page/CaptionUserPreferencesMac.mm:

(WebCore::CaptionUserPreferencesMac::sortedTrackListForMenu): Check to see if a track is

easy-to-read after checking if it is forced only.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r149501 r149502  
     12013-05-02  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [Mac] caption track menu includes "easy to read" in-band tracks twice
     4        https://bugs.webkit.org/show_bug.cgi?id=115529
     5
     6        Reviewed by Dean Jackson.
     7
     8        * page/CaptionUserPreferencesMac.mm:
     9        (WebCore::CaptionUserPreferencesMac::sortedTrackListForMenu): Check to see if a track is
     10             easy-to-read after checking if it is forced only.
     11
    1122013-05-02  Antti Koivisto  <antti@apple.com>
    213
  • trunk/Source/WebCore/page/CaptionUserPreferencesMac.mm

    r149255 r149502  
    749749        String language = displayNameForLanguageLocale(track->language());
    750750
     751        if (track->containsOnlyForcedSubtitles())
     752            continue;
     753       
    751754        if (track->isEasyToRead()) {
    752755            if (!language.isEmpty())
     
    755758            continue;
    756759        }
    757 
    758         if (track->containsOnlyForcedSubtitles())
    759             continue;
    760760
    761761        if (!language.isEmpty() && track->isMainProgramContent()) {
Note: See TracChangeset for help on using the changeset viewer.