Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a71323b7d6371c5f2fd7b244c5f2638aded9cd8a
https://github.com/WebKit/WebKit/commit/a71323b7d6371c5f2fd7b244c5f2638aded9cd8a
Author: Tim Horton <[email protected]>
Date: 2026-03-03 (Tue, 03 Mar 2026)
Changed paths:
M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/AnimatedResize.mm
Log Message:
-----------
Fixed bar briefly shows up in middle of the page after rotation to portrait
(apple.com, cnn.com, etc.)
https://bugs.webkit.org/show_bug.cgi?id=309030
rdar://21719346
Reviewed by Ryan Reno.
Similar to 308209@main, use 306156@main's newly-introduced mechanism to make
out-of-band visible content rect updates, and update viewport-relative layers
during animated resize, updating the layers *after* we apply the resize update
block.
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _updateVisibleContentRects]):
(-[WKWebView _updateViewportRelativeLayersOutOfBand]):
Factor _updateViewportRelativeLayersOutOfBand out of _updateVisibleContentRects.
(-[WKWebView _beginAnimatedResizeWithUpdates:]):
Update viewport relative layers when we start an animated resize.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/AnimatedResize.mm:
(TEST(AnimatedResize, AnimatedResizeDoesNotFreezeFixedElements)):
Add a test.
Canonical link: https://commits.webkit.org/308558@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications