Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0be722ca6723faca88fecd1c806b2192ff065ffa
https://github.com/WebKit/WebKit/commit/0be722ca6723faca88fecd1c806b2192ff065ffa
Author: Lily Spiniolas <[email protected]>
Date: 2026-03-22 (Sun, 22 Mar 2026)
Changed paths:
M Source/WebCore/rendering/RenderLayerCompositor.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/ObscuredContentInsets.mm
Log Message:
-----------
Top color overhang may briefly disappear during rubberband restoration
https://bugs.webkit.org/show_bug.cgi?id=310392
rdar://173028532
Reviewed by Wenson Hsieh.
After a page reloads during a rubberbanding animation and the animation
is restored, the top color overhang layer is not immediately created,
resulting in the scroll stretch region flickering white.
To fix this, simply check if the `Page` has any top color stored already,
and if it does, create a layer using this color. It is then updated like
normal afterwards if needed.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/ObscuredContentInsets.mm
* Source/WebCore/rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::updateRootLayerPosition):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ObscuredContentInsets.mm:
(TestWebKitAPI::TEST(ObscuredContentInsets,
TopOverhangColorExtensionLayerAppearsImmediatelyAfterReload)):
(TestWebKitAPI::TEST(ObscuredContentInsets,
TopOverhangColorExtensionLayerRemovedQuicklyAfterNavigatingToPageWithoutFixedHeader)):
Canonical link: https://commits.webkit.org/309729@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications