Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bd3982f18b935f1d15689d0604dc7dad05a8188c
https://github.com/WebKit/WebKit/commit/bd3982f18b935f1d15689d0604dc7dad05a8188c
Author: Jean-Yves Avenard <[email protected]>
Date: 2025-10-17 (Fri, 17 Oct 2025)
Changed paths:
M Source/WebCore/platform/graphics/VideoLayerManager.h
M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
M Source/WebCore/platform/graphics/avfoundation/objc/VideoLayerManagerObjC.h
M
Source/WebCore/platform/graphics/avfoundation/objc/VideoLayerManagerObjC.mm
M Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm
Log Message:
-----------
VideoLayerManagerObjC::m_videoInlineLayer will be constructed by default with
a frame size of 0x0
https://bugs.webkit.org/show_bug.cgi?id=301011
rdar://162895471
Reviewed by Eric Carlson.
It was possible for the VideoLayerManager's inline layer to be created with a
frame size
of 0x0.
We reduce the chances of this happening by reading the player's presentation
size
on creation and update the layer's frame size whenever the presentation size
change.
Covered by existing testts.
* Source/WebCore/platform/graphics/VideoLayerManager.h:
* Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm:
(WebCore::AudioVideoRendererAVFObjC::setPresentationSize):
*
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::load):
* Source/WebCore/platform/graphics/avfoundation/objc/VideoLayerManagerObjC.h:
* Source/WebCore/platform/graphics/avfoundation/objc/VideoLayerManagerObjC.mm:
(WebCore::VideoLayerManagerObjC::setPresentationSize):
* Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm:
(WebCore::MediaPlayerPrivateWebM::MediaPlayerPrivateWebM):
(WebCore::MediaPlayerPrivateWebM::load):
Canonical link: https://commits.webkit.org/301761@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes