Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c757260acf90610e1b405f6d39bc2e3d0f4b3ddb
https://github.com/WebKit/WebKit/commit/c757260acf90610e1b405f6d39bc2e3d0f4b3ddb
Author: Fujii Hironori <[email protected]>
Date: 2026-03-25 (Wed, 25 Mar 2026)
Changed paths:
A LayoutTests/compositing/accelerated-layers-after-back-2-expected.html
A LayoutTests/compositing/accelerated-layers-after-back-2.html
M LayoutTests/platform/ios-site-isolation/TestExpectations
M LayoutTests/platform/mac-site-isolation/TestExpectations
M Source/WebCore/page/LocalFrameView.cpp
Log Message:
-----------
Fixed missing tiles after history back
https://bugs.webkit.org/show_bug.cgi?id=310153
Reviewed by Simon Fraser.
A blank page was shown after history back if the focused element was placed in
far down the page. LocalFrameView::scrollToFocusedElementInternal() scrolled to
the focused element. However, a RenderLayerBacking wasn't created when
scrolling to the focused element, and GraphicsLayer::setPosition() was not
called. Then, the coverage area was miscomputed, and tiles were missing.
scrollToFocusedElementInternal() should update compositing layers before
scrolling.
Test: compositing/accelerated-layers-after-back-2.html
* LayoutTests/compositing/accelerated-layers-after-back-2-expected.html: Added.
* LayoutTests/compositing/accelerated-layers-after-back-2.html: Added.
* LayoutTests/platform/ios-site-isolation/TestExpectations:
* LayoutTests/platform/mac-site-isolation/TestExpectations:
* Source/WebCore/page/LocalFrameView.cpp:
(WebCore::LocalFrameView::scrollToFocusedElementInternal):
Canonical link: https://commits.webkit.org/309966@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications