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

Issue 2635963004: Revert of [EditCommandSource] Pass source from |Editor::Command| to |Editor::apply*()/insert*( (2/3) (Closed)

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

Description

Revert of [EditCommandSource] Pass source from |Editor::Command| to |Editor::apply*()/insert*()/...| (2/3) (patchset #2 id:40001 of https://codereview.chromium.org/2576903002/ ) Reason for revert: We want to revert all CLs and start over the refactor process, see: https://crbug.com/673789. Original issue's description: > [EditCommandSource] Pass source from |Editor::Command| to |Editor::apply*()/insert*()/...| (2/3) > > This is the sub-patch (2/3) of supporting |EditCommandSource| in > |CompositeEditCommand| (https://crrev.com/2574793002). > > This CL: > 1. Added method |Editor::replaceSelectionForSpellChecker()| for > |SpellChecker::replaceMisspelledRange()| to hide editor details; > 2. Passed command source from |Editor::Command| to various methods in |Editor|, > such as |performDelete()|, |removeFormattingAndStyle()|, |applyStyle()|, > |replaceSelectionWithText()| etc. > > Note: > It's OK to add extra |EditCommandSource| parameter to those methods because > they are going to be moved to "EditorCommand.cpp" (according to the editing > refactor doc), which means they should share the similar pattern as other > |static execute*()| methods. > > This CL shouldn't have any behavior change. > > Next CL will pass command source down to |CompositeEditCommand| and > |TypingCommand|. > > Editing Refactor doc: > https://docs.google.com/a/chromium.org/document/d/1i-f5ByGHIvTcvy2UEAvOtBK14BNMFTB8ms9uedeArbw/edit?usp=sharing > > BUG=673789 > > Committed: https://crrev.com/f6fddd7fab5cf706023fc4f2edbdfa4fdd93d56f > Cr-Commit-Position: refs/heads/master@{#439010} TBR=tkent@chromium.org,xiaochengh@chromium.org,yosin@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=673789 Review-Url: https://codereview.chromium.org/2635963004 Cr-Commit-Position: refs/heads/master@{#444085} Committed: https://chromium.googlesource.com/chromium/src/+/5d43e0f5fb5702f1873a4e9e94ea0f418ded2406

Patch Set 1 #

Patch Set 2 : Fix revert conflcts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -168 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.h View 1 7 chunks +14 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 23 chunks +32 lines, -64 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 19 chunks +61 lines, -72 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (6 generated)
chongz
Created Revert of [EditCommandSource] Pass source from |Editor::Command| to |Editor::apply*()/insert*()/...| (2/3)
3 years, 11 months ago (2017-01-17 14:57:57 UTC) #1
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/2635963004/1
3 years, 11 months ago (2017-01-17 14:58:31 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/136854) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-17 15:00:05 UTC) #6
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/2635963004/130001
3 years, 11 months ago (2017-01-17 15:34:52 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:130001) as https://chromium.googlesource.com/chromium/src/+/5d43e0f5fb5702f1873a4e9e94ea0f418ded2406
3 years, 11 months ago (2017-01-17 17:49:23 UTC) #11
tkent
lgtm
3 years, 11 months ago (2017-01-17 23:03:41 UTC) #12
tkent
3 years, 11 months ago (2017-01-17 23:03:46 UTC) #13
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698