Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 91c550440fa878e3e31b2fecf2d4f757d0f0dc0a
https://github.com/WebKit/WebKit/commit/91c550440fa878e3e31b2fecf2d4f757d0f0dc0a
Author: Ahmad Saleem <[email protected]>
Date: 2026-01-08 (Thu, 08 Jan 2026)
Changed paths:
M LayoutTests/media/video-poster-delayed-expected.txt
M LayoutTests/media/video-poster-delayed.html
M LayoutTests/media/video-size-expected.txt
M LayoutTests/media/video-size.html
M Source/WebCore/rendering/RenderVideo.cpp
Log Message:
-----------
Prevent resizing of video poster image while waiting for initial frame
https://bugs.webkit.org/show_bug.cgi?id=292414
rdar://problem/150975269
Reviewed by Eric Carlson.
Merge:
https://chromium.googlesource.com/chromium/src.git/+/048c5c63908271582e4a36376d8c0e783b07523b
The previous logic for what intrinsic size to give to a video element
was based on outdated spec text. This patch updates it to prevent the
poster image from resizing between starting playback and the first video
frame being rendered.
The fix ensures that when a video has both a poster and video source,
the poster dimensions are used until a video frame is actually available,
then switches to the video's natural size.
* Source/WebCore/rendering/RenderVideo.cpp:
(WebCore::RenderVideo::calculateIntrinsicSizeInternal):
* LayoutTests/media/video-poster-delayed-expected.txt:
* LayoutTests/media/video-poster-delayed.html:
* LayoutTests/media/video-size-expected.txt:
* LayoutTests/media/video-size.html:
Canonical link: https://commits.webkit.org/305281@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications