commit | c60134c5f7ff4a24efe0c517d5228e21def64125 | [log] [tgz] |
---|---|---|
author | Xiaocheng Hu <[email protected]> | Wed Aug 16 18:41:08 2017 |
committer | Commit Bot <[email protected]> | Wed Aug 16 18:41:08 2017 |
tree | 941bb1ed28f95e170ad3b42ca15ed59b9ff3e806 | |
parent | 777324f68a5a673b3d3491d24dcdeb47392c43ef [diff] |
Do not create temporary Range in AXLayoutObject::IndexForVisiblePosition The above mentioned function measures length between two positions, which doesn't really need a Range object. Hence, this patch changes the function not to create a temporary Range object to reduce memory impact. Bug: 388681 Change-Id: I6fb1b325b74e7331da1ecffef895330f88f22e92 Reviewed-on: https://chromium-review.googlesource.com/616230 Reviewed-by: Dominic Mazzoni <[email protected]> Commit-Queue: Xiaocheng Hu <[email protected]> Cr-Commit-Position: refs/heads/master@{#494877}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .