MyGit

merge_pr_43356

web-platform-tests/wpt

版本发布时间: 2023-11-27 19:46:25

web-platform-tests/wpt最新发布版本:merge_pr_48029(2024-09-07 13:25:31)

part 1: Make AutoMoveOneLineHandler make AutoRangeArray work with `BlockInlineCheck::UseComputedDisplayOutsideStyle

AutoMoveOneLineHandler uses AutoRangeArray API for block level edit sub-actions. Therefore, the source line is computed with BlockInlineCheck::UseHTMLDefaultStyle. However, the deletion handler works with BlockInlineCheck::UseComputedDisplayOutsideStyle. Therefore, AutoMoveOneLineHandler may try to move different range. In the reported test case, it tries to move all content under the <body> into the <a display="table-header-group"> which is contained in the range. Therefore, the movedContentRange check fails after the destination becomes into an orphan node which was removed to move.

This patch renames the API and adds a BlockInlineCheck parameter to work with both ways and makes AutoMoveOneLineHandler specify BlockInlineCheck::UseComputedDisplayOutsideStyle as same as the other delete handlers.

Finally, same thing may happen in HTMLEditor::OnEndHandlingTopLevelEditSubActionInternal. This patch makes it check whether the top-level edit sub-action is a block level one or not and consider BlockInlineCheck with the result.

Depends on D194180

Differential Revision: https://phabricator.services.mozilla.com/D194181

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1865729 gecko-commit: edf9292c0bc9c671afa4de12648c16622e9d418c gecko-reviewers: m_kato

相关地址:原始地址 下载(tar) 下载(zip)

1、 MANIFEST-51c42fc2c8bfb4ccb07317cc034479f56ada9ba6.json.bz2 2.37MB

2、 MANIFEST-51c42fc2c8bfb4ccb07317cc034479f56ada9ba6.json.gz 2.9MB

3、 MANIFEST-51c42fc2c8bfb4ccb07317cc034479f56ada9ba6.json.zst 2.39MB

查看:2023-11-27发行的版本