Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 81f8f7f4b68421ec53e649a7649b12744e1981fc
      
https://github.com/WebKit/WebKit/commit/81f8f7f4b68421ec53e649a7649b12744e1981fc
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    M Source/WebCore/html/HTMLMediaElement.cpp
    M Source/WebCore/html/HTMLMediaElement.h

  Log Message:
  -----------
  Un-necessary text track reconfigurations causes full re-layout
https://bugs.webkit.org/show_bug.cgi?id=256090
rdar://108381732

Reviewed by Jer Noble.

We only need to reconfigure the text tracks if the language has changed
since the last time it was initialized.

* Source/WebCore/html/HTMLMediaElement.cpp: cache the current 
languageOfPrimaryAudioTrack
and only execute markCaptionAndSubtitleTracksAsUnconfigured if original has 
changed.
(WebCore::HTMLMediaElement::mediaPlayerCharacteristicChanged):
* Source/WebCore/html/HTMLMediaElement.h:

Canonical link: https://commits.webkit.org/263521@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to