Skip to content
  • tony@chromium.org's avatar
    Remove internals shouldDisplayTrackKind methods; these are also on internals.settings · 48b46cc5
    tony@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=100564
    
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    Remove duplicate methods from internals that was just forwarding on the call to internals.settings.
    Also fix a bug where we didn't reset these settings properly.
    
    No new tests, this is covered by existing media/track tests.
    
    * testing/InternalSettings.cpp:
    (WebCore::InternalSettings::Backup::Backup): Properly save display track settings.
    (WebCore::InternalSettings::Backup::restoreTo): Restore display track settings.
    * testing/InternalSettings.h:
    * testing/InternalSettings.idl: Use [Conditional=VIDEO_TRACK].
    * testing/Internals.cpp: Remove code.
    * testing/Internals.h: Remove code.
    * testing/Internals.idl: Remove code.
    
    LayoutTests:
    
    Update tests to use the internals.settings method.
    
    * media/track/track-language-preference-expected.txt:
    * media/track/track-language-preference.html:
    * media/track/track-prefer-captions-expected.txt:
    * media/track/track-prefer-captions.html:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    48b46cc5