Bug 1540738 [wpt PR 15936] - [ElementTiming] Mimic FCP++ rect computations, a=testonly
commitdc8b49ab3b85d73d9a7088d87fa4af0dcf2a676d
authorNicolás Peña Moreno <npm@chromium.org>
Thu, 18 Apr 2019 11:57:54 +0000 (18 11:57 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Wed, 24 Apr 2019 10:31:37 +0000 (24 11:31 +0100)
tree96041cd545614b56dfba33b9e9ec5c5656573f75
parentd8050363534a0c3d0d768d99cfe8ec95037ff9c9
Bug 1540738 [wpt PR 15936] - [ElementTiming] Mimic FCP++ rect computations, a=testonly

Automatic update from web-platform-tests
[ElementTiming] Mimic FCP++ rect computations

This CL changes ElementTiming rect computation to use a computation
similar to that used by FCP++, but relative to the owning frame.

The tests show that the new computation seems more accurate as they
uncovered a problem with the SVG test: default SVG size is 300x150 so
it was clipping the <image> element inside.

A test for rect coordinates relative to iframe is added.

Bug: 879270, 943138
Change-Id: Ib8fa266bda76843fbf7ca07f82ac5bb245d52c4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1531503
Reviewed-by: Liquan (Max) Gu <maxlg@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645021}

--

wpt-commits: 5570bb27d55420f0639dab2415e618afdb94a6f6
wpt-pr: 15936
testing/web-platform/tests/element-timing/image-clipped-svg.html [copied from testing/web-platform/tests/element-timing/observe-svg-image.html with 80% similarity]
testing/web-platform/tests/element-timing/image-rect-iframe.html [new file with mode: 0644]
testing/web-platform/tests/element-timing/observe-svg-image.html
testing/web-platform/tests/element-timing/resources/iframe-with-square-sends-entry.html [new file with mode: 0644]