Bug
1573651 [wpt PR 18404] - [LargestContentfulPaint] Fix loadTime for background images, a=testonly
Automatic update from web-platform-tests
[LargestContentfulPaint] Fix loadTime for background images
This CL fixes the loadTime of background images for the LargestContentfulPaint
web API. The StyleFetchedImage is now needed in the OnImageLoaded() method.
Instead of computing the timestamp again, we query it from the
ImageElementTiming class. This should be populated whenever ElementTiming is
enabled. While it is still behind a flag, it is set to 'stable' so it should be
on by default. A test is added to ensure that the loadTime is populated properly
in a case where it wouldn't be previously.
Bug: 965505, 986891
Change-Id: I7c3421006cec0dbd79c50a21ae055f11b7ce3ce2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
1752295
Reviewed-by: Steve Kobes <skobes@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#687242}
--
wpt-commits:
d9e65dc6cc6f4a914abf3b204b12c0901063a1fd
wpt-pr: 18404