commit | 158d5c7f1f0b964fd023a696791e6e0491a51921 | [log] [tgz] |
---|---|---|
author | zhoupeng <zhoupeng.1996@bytedance.com> | Wed Jan 24 22:15:33 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 24 22:15:33 2024 |
tree | 138a43015584f051c0d54ae3f235d4a042ca1a35 | |
parent | 90c9122bfb047b08abbe539210085473b4672a98 [diff] |
[editing] Adjust the cursor position to the right without crossing the editable boundary between non-editable sibling nodes Consider this test case: <div id="ce" contenteditable> Hello |<b contenteditable="false">N</b><b contenteditable="false">N</b> </div> Move the cursor to the right, and it disappears, leaving you unable to retrieve it even with the left key. In the example, `non_editable_node` is `B`, `editable_position` is `DIV#ce@offset2`. `non_editable_node` is a child node of the `editable_position`, hence it will obtain the next candidate, which is a non-editable position. If `non_editable_node` is not the last child of `editable_position`, `InsertListCommand::DoApply` will proceed without any issues. Bug: 1334557 Change-Id: I0ada9450f2d1d1ad96182e8d9c6a5d9b97942165 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5201698 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#1251737}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.