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