Bug 119199

Summary: Don't update the text track override CSS every time a media element is created.
Product: WebKit Reporter: Andreas Kling <kling>
Component: AccessibilityAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, eric.carlson, glenn, jer.noble, kling, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar, Performance
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Andreas Kling 2013-07-28 19:13:22 PDT
Don't update the text track override CSS every time a media element is created.
Comment 1 Radar WebKit Bug Importer 2013-07-28 19:13:35 PDT
<rdar://problem/14572855>
Comment 2 Andreas Kling 2013-07-28 19:19:45 PDT
Created attachment 207617 [details]
Patch
Comment 3 Darin Adler 2013-07-28 21:39:48 PDT
Comment on attachment 207617 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=207617&action=review

> Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:238
> +        updateCaptionStyleSheetOveride();

I would suggest instead changing this function to use early return if already listening for preference changes rather than nesting all this code inside an if statement.
Comment 4 Anders Carlsson 2013-07-28 21:41:31 PDT
Comment on attachment 207617 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=207617&action=review

>> Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:238
>> +        updateCaptionStyleSheetOveride();
> 
> I would suggest instead changing this function to use early return if already listening for preference changes rather than nesting all this code inside an if statement.

And fix the spelling while you're at it :)
Comment 5 WebKit Commit Bot 2013-07-28 23:22:40 PDT
Comment on attachment 207617 [details]
Patch

Clearing flags on attachment: 207617

Committed r153418: <http://trac.webkit.org/changeset/153418>
Comment 6 WebKit Commit Bot 2013-07-28 23:22:42 PDT
All reviewed patches have been landed.  Closing bug.