Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Issue 2641803002: Move EditCommand::starting/endingSelection() to CompositeEditCommand (1/2) (Closed)

Created:
3 years, 11 months ago by Xiaocheng
Modified:
3 years, 11 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -32 lines) Patch
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h View 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditCommand.h View 3 chunks +1 line, -13 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditCommand.cpp View 5 chunks +20 lines, -18 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 14 (10 generated)
Xiaocheng
PTAL.
3 years, 11 months ago (2017-01-18 10:07:38 UTC) #6
yosin_UTC9
lgtm Thanks for quick work! (^_^)b
3 years, 11 months ago (2017-01-18 12:09:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641803002/1
3 years, 11 months ago (2017-01-18 12:10:03 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 12:13:48 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d9e076c4780e0bcb4af6a257407f...

Powered by Google App Engine
This is Rietveld 408576698