Bug 1573651 [wpt PR 18404] - [LargestContentfulPaint] Fix loadTime for background...
commit70186fb1e1eef2e600800f354fc801bd6718c9f0
authorNicolás Peña Moreno <npm@chromium.org>
Mon, 19 Aug 2019 10:41:44 +0000 (19 10:41 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 23 Aug 2019 16:39:46 +0000 (23 16:39 +0000)
tree03373e6178723c69b604ad083d6e2fc87dd1f359
parentfaf64978a88c1131de2de30be5a1adc39842eeaa
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
testing/web-platform/tests/largest-contentful-paint/first-letter-background.html [new file with mode: 0644]