Changeset 167578 in webkit


Ignore:
Timestamp:
Apr 20, 2014 9:28:20 PM (10 years ago)
Author:
Brent Fulgham
Message:

[Mac] Unable to select 'Off' or 'Auto' from track menu when tracks consist of unsupported track types
https://bugs.webkit.org/show_bug.cgi?id=131908
<rdar://problem/15999882>

Reviewed by Eric Carlson.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::setSelectedTextTrack): When the user selects 'Off', make sure the currently 'showing'
track is switched to 'disabled'.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167577 r167578  
     12014-04-20  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Mac] Unable to select 'Off' or 'Auto' from track menu when tracks consist of unsupported track types
     4        https://bugs.webkit.org/show_bug.cgi?id=131908
     5        <rdar://problem/15999882>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * html/HTMLMediaElement.cpp:
     10        (WebCore::HTMLMediaElement::setSelectedTextTrack): When the user selects 'Off', make sure the currently 'showing'
     11        track is switched to 'disabled'.
     12
    1132014-04-20  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r167528 r167578  
    37153715                track->setMode(TextTrack::showingKeyword());
    37163716        }
     3717    } else if (trackToSelect == TextTrack::captionMenuOffItem()) {
     3718        for (int i = 0, length = trackList->length(); i < length; ++i)
     3719            trackList->item(i)->setMode(TextTrack::disabledKeyword());
    37173720    }
    37183721
Note: See TracChangeset for help on using the changeset viewer.