Changeset 147001 in webkit
- Timestamp:
- Mar 27, 2013, 11:45:29 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 14 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/media/track/track-in-band-legacy-api-expected.txt (added)
-
LayoutTests/media/track/track-in-band-legacy-api.html (added)
-
LayoutTests/platform/chromium/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/efl/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/gtk/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/qt/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLMediaElement.cpp (modified) (4 diffs)
-
Source/WebCore/html/HTMLMediaElement.h (modified) (1 diff)
-
Source/WebCore/page/CaptionUserPreferences.cpp (modified) (1 diff)
-
Source/WebCore/page/CaptionUserPreferences.h (modified) (2 diffs)
-
Source/WebCore/page/CaptionUserPreferencesMac.h (modified) (1 diff)
-
Source/WebCore/page/CaptionUserPreferencesMac.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r147000 r147001 1 2013-03-27 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] webkitClosedCaptionsVisible doesn't work 4 https://bugs.webkit.org/show_bug.cgi?id=113417 5 6 Reviewed by Jer Noble. 7 8 * media/track/track-in-band-legacy-api-expected.txt: Added. 9 * media/track/track-in-band-legacy-api.html: Added. 10 11 * platform/chromium/TestExpectations: Skip new test. 12 * platform/efl/TestExpectations: Ditto. 13 * platform/gtk/TestExpectations: Ditto. 14 * platform/mac/TestExpectations: Ditto. 15 * platform/qt/TestExpectations: Ditto. 16 * platform/win/TestExpectations: Ditto. 17 1 18 2013-03-27 Eric Carlson <eric.carlson@apple.com> 2 19 -
trunk/LayoutTests/platform/chromium/TestExpectations
r146942 r147001 3579 3579 webkit.org/b/103767 [ Win Mac Linux ] media/track/track-in-band-cues-added-once.html [ Skip ] 3580 3580 webkit.org/b/103767 [ Win Mac Linux ] media/track/track-in-band-style.html [ Skip ] 3581 webkit.org/b/103767 [ Win Mac Linux ] media/track/track-in-band-legacy-api.html [ Skip ] 3581 3582 3582 3583 # Flaky on Win (perhaps due to lighttpd?) -
trunk/LayoutTests/platform/efl/TestExpectations
r146980 r147001 1623 1623 Bug(EFL) media/track/track-in-band-cues-added-once.html [ Skip ] 1624 1624 Bug(EFL) media/track/track-in-band-style.html [ Skip ] 1625 Bug(EFL) media/track/track-in-band-legacy-api.html [ Skip ] 1625 1626 1626 1627 # All debug bots timeout (crash) on this one -
trunk/LayoutTests/platform/gtk/TestExpectations
r146994 r147001 407 407 webkit.org/b/103771 media/track/track-in-band-cues-added-once.html [ Timeout ] 408 408 webkit.org/b/103771 media/track/track-in-band-style.html [ Timeout ] 409 webkit.org/b/103771 media/track/track-in-band-legacy-api.html [ Timeout ] 409 410 410 411 #Incorrect rebaseline -
trunk/LayoutTests/platform/mac/TestExpectations
r146986 r147001 1356 1356 webkit.org/b/103663 [ MountainLion Lion SnowLeopard ] media/track/track-in-band-cues-added-once.html 1357 1357 webkit.org/b/103663 [ MountainLion Lion SnowLeopard ] media/track/track-in-band-style.html 1358 webkit.org/b/103663 [ MountainLion Lion SnowLeopard ] media/track/track-in-band-legacy-api.html 1358 1359 1359 1360 # These two tests sometimes timeout -
trunk/LayoutTests/platform/qt/TestExpectations
r146910 r147001 2619 2619 webkit.org/b/103769 media/track/track-in-band-cues-added-once.html [ Skip ] 2620 2620 webkit.org/b/103769 media/track/track-in-band-style.html [ Skip ] 2621 webkit.org/b/103769 media/track/track-in-band-legacy-api.html [ Skip ] 2621 2622 2622 2623 webkit.org/b/104150 fast/media/implicit-media-all.html [ ImageOnlyFailure ] -
trunk/LayoutTests/platform/win/TestExpectations
r146837 r147001 2516 2516 webkit.org/b/103770 media/track/track-in-band-cues-added-once.html [ Skip ] 2517 2517 webkit.org/b/103770 media/track/track-in-band-style.html [ Skip ] 2518 webkit.org/b/103770 media/track/track-in-band-legacy-api.html [ Skip ] 2518 2519 2519 2520 # https://bugs.webkit.org/show_bug.cgi?id=97026 -
trunk/Source/WebCore/ChangeLog
r147000 r147001 1 2013-03-27 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] webkitClosedCaptionsVisible doesn't work 4 https://bugs.webkit.org/show_bug.cgi?id=113417 5 6 Reviewed by Jer Noble. 7 8 Test: media/track/track-in-band-legacy-api.html 9 10 * html/HTMLMediaElement.cpp: 11 (WebCore::HTMLMediaElement::HTMLMediaElement): Delete m_disableCaptions, it is no longer used. 12 (WebCore::HTMLMediaElement::configureTextTrackGroup): Pass this to textTrackSelectionScore. 13 (WebCore::HTMLMediaElement::setClosedCaptionsVisible): Delete m_disableCaptions, it is no longer used. 14 * html/HTMLMediaElement.h: Ditto. 15 16 * page/CaptionUserPreferences.cpp: 17 (WebCore::CaptionUserPreferences::textTrackSelectionScore): Add an HTMLMediaElement parameter. 18 * page/CaptionUserPreferences.h: 19 20 * page/CaptionUserPreferencesMac.h: 21 * page/CaptionUserPreferencesMac.mm: 22 (WebCore::CaptionUserPreferencesMac::textTrackSelectionScore): Return a score if the media element 23 is showing captions, even if the preference says captions are disabled. 24 1 25 2013-03-27 Eric Carlson <eric.carlson@apple.com> 2 26 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r146801 r147001 298 298 , m_textTracks(0) 299 299 , m_ignoreTrackDisplayUpdate(0) 300 , m_disableCaptions(false)301 300 #endif 302 301 #if ENABLE(WEB_AUDIO) … … 318 317 #if ENABLE(VIDEO_TRACK) 319 318 document->registerForCaptionPreferencesChangedCallbacks(this); 320 if (document->page()) {321 CaptionUserPreferences* captionPreferences = document->page()->group().captionPreferences();322 if (captionPreferences->userHasCaptionPreferences())323 m_disableCaptions = !captionPreferences->shouldShowCaptions();324 }325 319 #endif 326 320 } … … 3099 3093 currentlyEnabledTracks.append(textTrack); 3100 3094 3101 int trackScore = captionPreferences ? captionPreferences->textTrackSelectionScore(textTrack.get() ) : 0;3095 int trackScore = captionPreferences ? captionPreferences->textTrackSelectionScore(textTrack.get(), this) : 0; 3102 3096 if (trackScore) { 3103 3097 // * If the text track kind is { [subtitles or captions] [descriptions] } and the user has indicated an interest in having a … … 4296 4290 if (RuntimeEnabledFeatures::webkitVideoTrackEnabled()) { 4297 4291 m_processingPreferenceChange = true; 4298 m_disableCaptions = !m_closedCaptionsVisible;4299 4300 4292 markCaptionAndSubtitleTracksAsUnconfigured(); 4301 4302 4293 updateTextTrackDisplay(); 4303 4294 } -
trunk/Source/WebCore/html/HTMLMediaElement.h
r146647 r147001 706 706 CueList m_currentlyActiveCues; 707 707 int m_ignoreTrackDisplayUpdate; 708 bool m_disableCaptions;709 708 #endif 710 709 -
trunk/Source/WebCore/page/CaptionUserPreferences.cpp
r146647 r147001 193 193 } 194 194 195 int CaptionUserPreferences::textTrackSelectionScore(TextTrack* track ) const195 int CaptionUserPreferences::textTrackSelectionScore(TextTrack* track, HTMLMediaElement*) const 196 196 { 197 197 int trackScore = 0; -
trunk/Source/WebCore/page/CaptionUserPreferences.h
r146647 r147001 38 38 namespace WebCore { 39 39 40 class HTMLMediaElement; 40 41 class PageGroup; 41 42 class TextTrackList; … … 50 51 virtual void setShouldShowCaptions(bool); 51 52 52 virtual int textTrackSelectionScore(TextTrack* ) const;53 virtual int textTrackSelectionScore(TextTrack*, HTMLMediaElement*) const; 53 54 virtual int textTrackLanguageSelectionScore(TextTrack*) const; 54 55 -
trunk/Source/WebCore/page/CaptionUserPreferencesMac.h
r146647 r147001 61 61 #endif 62 62 63 virtual int textTrackSelectionScore(TextTrack* ) const OVERRIDE;63 virtual int textTrackSelectionScore(TextTrack*, HTMLMediaElement*) const OVERRIDE; 64 64 virtual Vector<RefPtr<TextTrack> > sortedTrackListForMenu(TextTrackList*) OVERRIDE; 65 65 virtual String displayNameForTrack(TextTrack*) const OVERRIDE; -
trunk/Source/WebCore/page/CaptionUserPreferencesMac.mm
r147000 r147001 34 34 #import "DOMWrapperWorld.h" 35 35 #import "FloatConversion.h" 36 #import "HTMLMediaElement.h" 36 37 #import "KURL.h" 37 38 #import "Language.h" … … 537 538 String language = languageCF.get(); 538 539 if (!label.isEmpty()) { 539 if (language.isEmpty() || label.contains(language)) {540 if (language.isEmpty() || label.contains(language)) 540 541 displayName.append(label); 541 }else {542 else { 542 543 RetainPtr<CFDictionaryRef> localeDict(AdoptCF, CFLocaleCreateComponentsFromLocaleIdentifier(kCFAllocatorDefault, localeIdentifier.get())); 543 544 if (localeDict) { … … 601 602 } 602 603 603 int CaptionUserPreferencesMac::textTrackSelectionScore(TextTrack* track ) const604 { 605 if (!shouldShowCaptions() )604 int CaptionUserPreferencesMac::textTrackSelectionScore(TextTrack* track, HTMLMediaElement* mediaElement) const 605 { 606 if (!shouldShowCaptions() && !mediaElement->webkitClosedCaptionsVisible()) 606 607 return 0; 607 608 if (track->kind() != TextTrack::captionsKeyword() && track->kind() != TextTrack::subtitlesKeyword())
Note:
See TracChangeset
for help on using the changeset viewer.