github web-platform-tests/wpt merge_pr_46791

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
14 months ago

Add getNodePartNodes() and getChildNodePartNodes() to DOM Parts

Most of the overhead of getParts() is construction of the Part
objects and then construction of the wrapper V8 objects. To avoid
all of that cost, add two APIs to just retrieve the Nodes
corresponding to the Parts.

This CL also removes an old getPartNode() function that is quite
similar to the new APIs here, but which uses the old caching version
of getParts().

Bug: 40271855
Change-Id: I11ad539814a731d8b11ef1c6317c34683989e36b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5612550
Commit-Queue: David Baron dbaron@chromium.org
Auto-Submit: Mason Freed masonf@chromium.org
Reviewed-by: David Baron dbaron@chromium.org
Cr-Commit-Position: refs/heads/main@{#1315987}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.