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

Issue 2706033007: Add SetCharacterDataCommand (Closed)

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

Description

Add SetCharacterDataCommand Spun off from https://codereview.chromium.org/2692093003/ with the changes requested there made. One weird thing I noticed: doUnapply() is declared as public in SimpleEditCommand, but all the subclasses I've looked at declare the subclass implementation as private. I've declared my implementation in SetCharacterDataCommand as public so we can call doUnapply() from the test case. Review-Url: https://codereview.chromium.org/2706033007 Cr-Commit-Position: refs/heads/master@{#452766} Committed: https://chromium.googlesource.com/chromium/src/+/b2b632ce4c039452f4c3158131c50e92381b586d

Patch Set 1 #

Total comments: 3

Patch Set 2 : Make doUnapply() private #

Total comments: 1

Patch Set 3 : Fix DCHECK #

Total comments: 3

Patch Set 4 : Remove updateStyleAndLayout(), add DCHECK, add more tests #

Messages

Total messages: 39 (23 generated)
rlanday
Spun off from https://codereview.chromium.org/2692093003/ as requested
3 years, 10 months ago (2017-02-21 21:55:06 UTC) #4
Xiaocheng
https://codereview.chromium.org/2706033007/diff/1/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp File third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp (right): https://codereview.chromium.org/2706033007/diff/1/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp#newcode53 third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp:53: document().updateStyleAndLayout(); This call of Document::updateSAL is not good... It ...
3 years, 10 months ago (2017-02-21 23:37:32 UTC) #8
rlanday
https://codereview.chromium.org/2706033007/diff/1/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp File third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp (right): https://codereview.chromium.org/2706033007/diff/1/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp#newcode53 third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp:53: document().updateStyleAndLayout(); On 2017/02/21 at 23:37:32, Xiaocheng wrote: > This ...
3 years, 10 months ago (2017-02-22 01:54:38 UTC) #11
Xiaocheng
On 2017/02/22 at 01:54:38, rlanday wrote: > https://codereview.chromium.org/2706033007/diff/1/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp > File third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp (right): > > https://codereview.chromium.org/2706033007/diff/1/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp#newcode53 ...
3 years, 10 months ago (2017-02-22 02:00:39 UTC) #12
rlanday
https://codereview.chromium.org/2706033007/diff/20001/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp File third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp (right): https://codereview.chromium.org/2706033007/diff/20001/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp#newcode23 third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp:23: DCHECK_LT(m_offset, m_node->length()); @yosin, you said this should be DCHECK_LT: ...
3 years, 10 months ago (2017-02-22 02:58:23 UTC) #15
yosin_UTC9
On 2017/02/22 at 02:58:23, rlanday wrote: > https://codereview.chromium.org/2706033007/diff/20001/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp > File third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp (right): > > https://codereview.chromium.org/2706033007/diff/20001/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp#newcode23 ...
3 years, 10 months ago (2017-02-22 03:15:33 UTC) #18
rlanday
On 2017/02/22 at 03:15:33, yosin wrote: > On 2017/02/22 at 02:58:23, rlanday wrote: > > ...
3 years, 10 months ago (2017-02-22 04:38:23 UTC) #19
yosin_UTC9
On 2017/02/22 at 04:38:23, rlanday wrote: > On 2017/02/22 at 03:15:33, yosin wrote: > > ...
3 years, 10 months ago (2017-02-22 06:33:32 UTC) #20
yosin_UTC9
https://codereview.chromium.org/2706033007/diff/40001/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp File third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp (right): https://codereview.chromium.org/2706033007/diff/40001/third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp#newcode46 third_party/WebKit/Source/core/editing/commands/SetCharacterDataCommand.cpp:46: layoutText->momentarilyRevealLastTypedCharacter(m_offset + Wow, we need to find out alternative ...
3 years, 10 months ago (2017-02-22 06:44:32 UTC) #21
rlanday
@yosin, I've made the requested changes
3 years, 10 months ago (2017-02-23 18:00:44 UTC) #28
Xiaocheng
lgtm My patch is already landed, so you can proceed now
3 years, 10 months ago (2017-02-23 18:33:50 UTC) #29
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/2706033007/60001
3 years, 10 months ago (2017-02-24 00:51:57 UTC) #31
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
3 years, 10 months ago (2017-02-24 00:51:59 UTC) #33
yosin_UTC9
lgtm
3 years, 10 months ago (2017-02-24 04:09:26 UTC) #35
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/2706033007/60001
3 years, 10 months ago (2017-02-24 04:09:41 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 05:47:10 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b2b632ce4c039452f4c3158131c5...

Powered by Google App Engine
This is Rietveld 408576698