Source/WebCore/ChangeLog

 12013-07-28 Andreas Kling <[email protected]>
 2
 3 Don't update the text track override CSS every time a media element is created.
 4 <http://webkit.org/b/119199>
 5 <rdar://problem/14572855>
 6
 7 Reviewed by NOBODY (OOPS!).
 8
 9 We should only have to update the CSS if the accessibility caption preferences are changed.
 10 This was forcing a full style recalc in every Document any time a media element is instantiated.
 11
 12 * page/CaptionUserPreferencesMediaAF.cpp:
 13 (WebCore::CaptionUserPreferencesMediaAF::setInterestedInCaptionPreferenceChanges):
 14
1152013-07-27 Andreas Kling <[email protected]>
216
317 RenderBoxModelObject::firstLetterRemainingText should be a RenderTextFragment*.

Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp

@@void CaptionUserPreferencesMediaAF::setInterestedInCaptionPreferenceChanges()
235235 if (!m_listeningForPreferenceChanges) {
236236 m_listeningForPreferenceChanges = true;
237237 CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), this, userCaptionPreferencesChangedNotificationCallback, kMAXCaptionAppearanceSettingsChangedNotification, 0, CFNotificationSuspensionBehaviorCoalesce);
 238 updateCaptionStyleSheetOveride();
238239 }
239 
240  updateCaptionStyleSheetOveride();
241240}
242241
243242void CaptionUserPreferencesMediaAF::captionPreferencesChanged()