Bug 1847750 [wpt PR 41385] - Gracefully handle inability to compute subject size...
commit97fdc572df6f5d996f4151fef09c668f7322dbdd
authorKevin Ellis <kevers@google.com>
Mon, 14 Aug 2023 17:23:12 +0000 (14 17:23 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 17 Aug 2023 21:35:17 +0000 (17 21:35 +0000)
treeb11c0208d8a3953a1219c2620d0b387a1fe6b39b
parente08a16621e6af9480992e64fc772c3167e08b945
Bug 1847750 [wpt PR 41385] - Gracefully handle inability to compute subject size., a=testonly

Automatic update from web-platform-tests
Gracefully handle inability to compute subject size.

Different elements require different strategies for computing the
bounding box. Presently we handle box elements as well as various
inline and SVG elements. The <br> element slipped through the cracks.
To prevent a crash for an unhandled element type, we instead handle a
nullopt size and allow CalculateOffsets to fail to compute offsets. If
no offsets are produced, then the timeline simply becomes inactive.

Bug: 1470522
Change-Id: Iaaef5241fb6ceb450ad6992c1c75619a0a672183
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4759905
Reviewed-by: Mustaq Ahmed <mustaq@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1182154}

--

wpt-commits: 911b77b5763c5eae6135f6f9d3699f619f23dd33
wpt-pr: 41385
testing/web-platform/tests/scroll-animations/view-timelines/subject-br-crash.html [new file with mode: 0644]