Changeset 153418 in webkit


Ignore:
Timestamp:
Jul 28, 2013 11:23:55 PM (11 years ago)
Author:
akling@apple.com
Message:

Don't update the text track override CSS every time a media element is created.
<http://webkit.org/b/119199>
<rdar://problem/14572855>

Reviewed by Darin Adler.

We should only have to update the CSS if the accessibility caption preferences are changed.
This was forcing a full style recalc in every Document any time a media element is instantiated.

  • page/CaptionUserPreferencesMediaAF.cpp:

(WebCore::CaptionUserPreferencesMediaAF::setInterestedInCaptionPreferenceChanges):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r153413 r153418  
     12013-07-28  Andreas Kling  <akling@apple.com>
     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 Darin Adler.
     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-28  Andy Estes  <aestes@apple.com>
    216
  • trunk/Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp

    r152861 r153418  
    236236        m_listeningForPreferenceChanges = true;
    237237        CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), this, userCaptionPreferencesChangedNotificationCallback, kMAXCaptionAppearanceSettingsChangedNotification, 0, CFNotificationSuspensionBehaviorCoalesce);
    238     }
    239    
    240     updateCaptionStyleSheetOveride();
     238        updateCaptionStyleSheetOveride();
     239    }
    241240}
    242241
Note: See TracChangeset for help on using the changeset viewer.