Don't update the text track override CSS every time a media element is created.
<rdar://problem/14572855>
Created attachment 207617 [details] Patch
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 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 on attachment 207617 [details] Patch Clearing flags on attachment: 207617 Committed r153418: <http://trac.webkit.org/changeset/153418>
All reviewed patches have been landed. Closing bug.