Bug 1717927 [wpt PR 29466] - Highlight API: Convert HighlightRegistry to a maplike...
commit5ce39fddb6af8613365e2d1cb1bf03645b47b748
authorFernando Fiori <ffiori@microsoft.com>
Thu, 1 Jul 2021 10:19:05 +0000 (1 10:19 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 1 Jul 2021 17:45:09 +0000 (1 17:45 +0000)
tree08decba1b862f0eb8a6c209c5356c0e3a2edeb0a
parent90b64c8e6ba02e9b80e6650b03426541f8ad5278
Bug 1717927 [wpt PR 29466] - Highlight API: Convert HighlightRegistry to a maplike, a=testonly

Automatic update from web-platform-tests
Highlight API: Convert HighlightRegistry to a maplike

Making some updates to the implementation because the specs changed
https://drafts.csswg.org/css-highlight-api-1.

- Convert HighlightRegistry from setlike to maplike.
- Highlight doesn't contain the highlight name anymore.
- HighlightRegistry::setForBinding() doesn't throw anymore when
inserting an existing key again.

Relevant discussion: https://github.com/w3c/csswg-drafts/issues/5910

Bug: 1197739
Change-Id: I24f69b5a09938fcda5af353cbd41899dc736cbf1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2980201
Commit-Queue: Fernando Fiori <ffiori@microsoft.com>
Reviewed-by: Sanket Joshi <sajos@microsoft.com>
Reviewed-by: Dan Clark <daniec@microsoft.com>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#897554}

--

wpt-commits: e06897f89fb3bc2ae7a6a205ce6f08452999e278
wpt-pr: 29466
30 files changed:
testing/web-platform/tests/css/css-highlight-api/Highlight-iteration-with-modifications.html
testing/web-platform/tests/css/css-highlight-api/Highlight-iteration.html
testing/web-platform/tests/css/css-highlight-api/Highlight-setlike.html
testing/web-platform/tests/css/css-highlight-api/HighlightRegistry-iteration-with-modifications.html
testing/web-platform/tests/css/css-highlight-api/HighlightRegistry-iteration.html
testing/web-platform/tests/css/css-highlight-api/HighlightRegistry-maplike.html [new file with mode: 0644]
testing/web-platform/tests/css/css-highlight-api/HighlightRegistry-setlike.html [deleted file]
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-001.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-002.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-003.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-004-2.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-004.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-005.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-006.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-007.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-008.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-009.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-010.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-011.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-012.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-013.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-014.html [copied from testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-001.html with 58% similarity]
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-015.html [copied from testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-001.html with 55% similarity]
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-below-grammar.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-below-target-text.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-prioritization-001.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-prioritization-002.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-staticrange-001.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-staticrange-002.html
testing/web-platform/tests/css/css-highlight-api/painting/custom-highlight-painting-staticrange-003.html