Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8f3ab17c3a9d4ebeea314cb06ff6d99998f073ef
      
https://github.com/WebKit/WebKit/commit/8f3ab17c3a9d4ebeea314cb06ff6d99998f073ef
  Author: Dean Jackson <[email protected]>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/html/HTMLMediaElement.cpp

  Log Message:
  -----------
  <audio> element counter-scaling causes overlapping media elements when page 
scale is < 1
https://bugs.webkit.org/show_bug.cgi?id=255428
rdar://105846526

Reviewed by Tim Horton.

We counter scale <audio> controls on iOS, which causes them to
escape their element bounds if the user zooms out. Add a setting
to disable this behaviour.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: Add a
    new setting AudioControlsScaleWithPageZoom to mirror the generic
    Media setting.
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::setMediaControlsDependOnPageScaleFactor): Add
    a test that escapes before setting the value.

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


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

Reply via email to