[Editing] Refactor DeleteSelectionCommand to not use VisibleSelection
Currently DeleteSelectionCommand accept a VisibleSelection as the parameter, which is not necessary in many places. This CL converts the VisibleSelection |selection_to_delete_| to SelectionForUndoStep. So we could avoid canonicalization. This enables us to avoiding to use VisibleSelection::CreateWithoutValidationDeprecated() later. Bug: 1024738 Change-Id: I4b32507afca4e77338e9f6a83c01b3a30ea3b188 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013905Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Cr-Commit-Position: refs/heads/master@{#734513}
Showing
Please register or sign in to comment