Bug 1815775 [wpt PR 38422] - vt: Handle transitions in an empty document, a=testonly
commit6d43335d638c82d63fccecb74c072bd0af719e71
authorDavid Bokan <bokan@chromium.org>
Fri, 10 Feb 2023 17:44:11 +0000 (10 17:44 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 20 Feb 2023 09:49:37 +0000 (20 09:49 +0000)
treefe8c81455e64a49110cfbb93968ac37a979fd78d
parentfa277754f17b468d6cfab9ef8631553b0be744e1
Bug 1815775 [wpt PR 38422] - vt: Handle transitions in an empty document, a=testonly

Automatic update from web-platform-tests
vt: Handle transitions in an empty document

An iframe can be empty which results in no painted output. In this case,
when performing a view transition the snapshot generating RenderSurface
will be dropped in [1]. However, there's still a transition request
referencing the output of that RenderSurface. This is handled for empty
elements by tracking which elements didn't produce a render pass[2].
However, this list is generated from `capture_resource_ids_` which
avoided the root (in a main frame, the root cannot be empty).

[1] https://source.chromium.org/chromium/chromium/src/+/main:cc/trees/draw_property_utils.cc;l=1107;drc=0c4306fc554c80506eb0f9b833a5d2a5fdd452d5
[2] https://source.chromium.org/chromium/chromium/src/+/main:cc/view_transition/view_transition_request.cc;l=118;drc=0c4306fc554c80506eb0f9b833a5d2a5fdd452d5

Bug: 1414069
Change-Id: I05489ee590f43309285e7f54de02b6781891b854
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4232863
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1103273}

--

wpt-commits: c16c26f8caf8023157a6dc5e02517702284846dc
wpt-pr: 38422
testing/web-platform/tests/css/css-view-transitions/support/transition-in-empty-iframe-child.html [new file with mode: 0644]
testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/css-view-transitions/transition-in-empty-iframe.html [new file with mode: 0644]