commit | e8805a4e7dfa1d4b5081f8b4d88d87088767d654 | [log] [tgz] |
---|---|---|
author | Tessa Nijssen <tnijssen@google.com> | Mon Aug 06 19:03:50 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Aug 06 19:03:50 2018 |
tree | 95239df30a794d9e5a6654dc29d7e50d52ce5721 | |
parent | 0c234193eb5d1dbe18de4ffdf5b961bcb15d2124 [diff] |
Editor::ReplaceSelection() Sets Smart Replace to False Editor::ReplaceSelection() was modified so that |smart_replace| is false. No callers currently existed that used the version of ReplaceSelection() with |smart_replace| = true. Smart Replace may add whitespace before and/or after an inserted piece of text. The only current call to Editor::ReplaceSelection() needs |smart_replace| to be false because no extra whitespace is desired. A comment was added in editor.h to explain that Smart Replace is not used in Editor::ReplaceSelection(). A test was added, EditorTest.ReplaceSelection, which passes when |smart_replace| = false and fails when |smart_replace| = true. Bug: 717553 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I1424e200780cd32900dac5b6f824f8d50c3f8dd5 Reviewed-on: https://chromium-review.googlesource.com/1150448 Commit-Queue: Tessa Nijssen <tnijssen@google.com> Reviewed-by: Peter Kasting <pkasting@chromium.org> Reviewed-by: Avi Drissman <avi@chromium.org> Reviewed-by: Sarah Chan <spqchan@chromium.org> Cr-Commit-Position: refs/heads/master@{#580940}
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 .