Add a DOM Parts mode that does not cache parts at all
This CL adds a new (default-off) feature flag called
DOMPartsAPIMinimal, which when enabled eliminates caching of the
parts list at all times. This should minimize the overhead of
cloning and appending DOM that contains DOM Parts, while lengthening
the time required for getParts().
This patch only supports NodeParts and ChildNodeParts, but not
AttributeParts. For that reason, many of the tests fail, when
AttributeParts are involved.
Bug: 40271855
Change-Id: If0103138144a24a0930978fc0bcd8e8d6006516c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5605785
Reviewed-by: David Baron dbaron@chromium.org
Commit-Queue: Mason Freed masonf@chromium.org
Auto-Submit: Mason Freed masonf@chromium.org
Cr-Commit-Position: refs/heads/main@{#1314364}