Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0b5c61add5d5702c182c59e6aff7664bbb893299
https://github.com/WebKit/WebKit/commit/0b5c61add5d5702c182c59e6aff7664bbb893299
Author: Simon Fraser <[email protected]>
Date: 2026-04-04 (Sat, 04 Apr 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-in-shadow-DOM-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-in-shadow-DOM.html
M
LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/resources/largest-contentful-paint-helpers.js
M Source/WebCore/page/LargestContentfulPaintData.cpp
Log Message:
-----------
LCP in shadow DOM is not reported
https://bugs.webkit.org/show_bug.cgi?id=310264
rdar://173197678
Reviewed by Alan Baradlay.
Use `Element::isConnected()` so that elements in Shadow DOM are considered for
LCP.
Test:
imported/w3c/web-platform-tests/largest-contentful-paint/image-in-shadow-DOM.html
*
LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-in-shadow-DOM-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-in-shadow-DOM.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/resources/largest-contentful-paint-helpers.js:
(checkImage):
* Source/WebCore/page/LargestContentfulPaintData.cpp:
(WebCore::LargestContentfulPaintData::isExposedForPaintTiming):
Canonical link: https://commits.webkit.org/310575@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications