-
eric.carlson@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=109466 Reviewed by Dean Jackson. .: * Source/autotools/symbols.filter: Export PageGroup::captionPreferences and Page::initGroup. Source/WebCore: Choosing a text track from the caption menu should make that track's language the preferred caption language. Turning captions off from the menu should disable captions in videos loaded subsequently. OS X has system support for these settings, so changes made by DRT should not change the settings on the user's system. Add support for all other ports in DRT only. Test: media/track/track-user-preferences.html * WebCore.exp.in: Export PageGroup::captionPreferences(). * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::HTMLMediaElement): Use page()->group().captionPreferences(). (WebCore::HTMLMediaElement::attach): Ditto. (WebCore::HTMLMediaElement::detach): Ditto. (WebCore::HTMLMediaElement::userPrefersCaptions): Ditto. (WebCore::HTMLMediaElement::configureTextTrac...
b54d1c88