Chromium Code Reviews
DescriptionMove EditCommand::starting/endingSelection() to CompositeEditCommand (1/2)
Currently, starting and ending selections are defined for all EditCommand,
but are used by only CompositeEditCommand; SimpleEditCommand does not use
them.
Hence, this patch moves the two selections from EditCommand to
CompositeEditCommand, so that the construction of SimpleCommand becomes
simpler.
As EditCommand::setParent modifies starting and ending selection, this
patch turns it into a virtual function, and overrides it with
CompositeEditCommand::setParent to modify the selections.
This patch also removes a redundant static function undoStepIfPossible()
from EditCommand.cpp.
BUG=682137
TEST=n/a; no behavior change
Review-Url: https://codereview.chromium.org/2641803002
Cr-Commit-Position: refs/heads/master@{#444338}
Committed: https://chromium.googlesource.com/chromium/src/+/d9e076c4780e0bcb4af6a257407f006c44a3a976
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 14 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||