Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b394c8bd841ce42044adc4ac379ee1a04ba9144d
https://github.com/WebKit/WebKit/commit/b394c8bd841ce42044adc4ac379ee1a04ba9144d
Author: Simon Fraser <[email protected]>
Date: 2025-10-23 (Thu, 23 Oct 2025)
Changed paths:
M Source/WebCore/page/LargestContentfulPaintData.cpp
Log Message:
-----------
[LCP] Optimize computing LCP entries for text
https://bugs.webkit.org/show_bug.cgi?id=301370
rdar://163285757
Reviewed by Tim Nguyen.
LCP rects for text are unioned for all the text nodes that contribute to an
Element,
so we can't do early area checks. However, when we get to
`generateLargestContentfulPaintEntry()`
we've collected all the rects, so now we can do an area check (if there are no
transforms in the
ancestor chain).
* Source/WebCore/page/LargestContentfulPaintData.cpp:
(WebCore::LargestContentfulPaintData::generateLargestContentfulPaintEntry):
(WebCore::LargestContentfulPaintData::didLoadImage):
Canonical link: https://commits.webkit.org/302072@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications