commit | 259a44fde2f6024a1063bcc7f92829c8f45ccf86 | [log] [tgz] |
---|---|---|
author | Julie Jeongeun Kim <jkim@igalia.com> | Fri Apr 05 11:22:40 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Apr 05 11:22:40 2024 |
tree | 5311b5dabcc0bcd9dc8a3594c59a3e294ca8e89b | |
parent | 6d0b71622925af9340ead8b7df6fab9600a6141f [diff] |
Set the ending selection to the end of the list child on outdenting This CL updates the ending selection to the end of the list child if the selected node is in a list item on outdenting. OutdentRegion() runs OutdentParagraph() for each paragraph. If the paragraph is in a list, it uses InsertListCommand::UnlistifyParagraph() that moves all children of HTMLLIElement at once after adjusting `start` and `end` with FirstPositionInNode and LastPositionInNode of HTMLLIElement. After finishing UnlistifyParagraph(), OutdentRegion() should know where to start the next paragraph so that it runs OutdentParagraph(), again. There is an adjustment for `end_of_next_paragraph` with the ending selection, but it could be the position already moved if the previous paragraph is in a list item. This change sets the ending selection to be synchronized with the moved position if the paragraph is in a list item. Bug: 331841851 Change-Id: Ib023a6764d62f9579a9b0a035ca2429a2d3479f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5404376 Commit-Queue: Julie Jeongeun Kim <jkim@igalia.com> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1283059}
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.