commit | db70c626e498c86811b26368edbdb6d2cf597813 | [log] [tgz] |
---|---|---|
author | Kent Tamura <tkent@chromium.org> | Mon May 12 08:00:14 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon May 12 08:00:14 2025 |
tree | cababb9b37b319fd8f215c2869b387a27d910cef | |
parent | 6839328ba05c2600629ce83fbf784b29574f9b4c [diff] |
Textarea: Improve performance of delete operations * DeleteSelectionCommand::RemoveCompletelySelectedNodes(): Skip UpdateStyleAndLayoutTree() calls in RemoveNodeCommand::DoApply(). We can skip it in UA shadow trees. * DeleteSelectionCommand:: MakeStylingElementsDirectChildrenOfEditableRootToPreventStyleLoss(): Do not call Range::PastLastNode() repeatedly. Its cost can be O(N) where N is the number of children. Bug: 341564372 Change-Id: I68bb2b4af33a2c5831bb724f82093bfe4bdebaec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6533147 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Auto-Submit: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#1458689}
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.