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

Issue 8823007: Don't merge replace edit if previous edit is delete edit. (Closed)

Created:
9 years ago by oshima
Modified:
9 years ago
CC:
chromium-reviews, tfarina, Paweł Hajdan Jr., James Su, penghuang+watch_chromium.org, yusukes+watch_chromium.org
Visibility:
Public.

Description

Don't merge replace edit if previous edit is delete edit. Enable UndoRedo_CutCopyPasteTest BUG=103988, 97845 TEST=added new UndoRedo_BackspaceThenSetText, enabled CutCopyPasteTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113525

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed comment. improved the test #

Total comments: 2

Patch Set 3 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -12 lines) Patch
M ui/views/controls/textfield/textfield_views_model.cc View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M ui/views/controls/textfield/textfield_views_model_unittest.cc View 1 1 chunk +25 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
oshima
9 years ago (2011-12-06 21:49:05 UTC) #1
msw
Interesting, the bug comments indicate that new_text_ was uninitialized or not set properly. Can you ...
9 years ago (2011-12-07 00:55:21 UTC) #2
oshima
http://codereview.chromium.org/8823007/diff/1/ui/views/controls/textfield/textfield_views_model.cc File ui/views/controls/textfield/textfield_views_model.cc (right): http://codereview.chromium.org/8823007/diff/1/ui/views/controls/textfield/textfield_views_model.cc#newcode61 ui/views/controls/textfield/textfield_views_model.cc:61: if (type_ != DELETE_EDIT && edit->merge_with_previous()) { On 2011/12/07 ...
9 years ago (2011-12-07 01:17:24 UTC) #3
msw
Awesome, thanks for clarifying. LGTM with nits. http://codereview.chromium.org/8823007/diff/5001/ui/views/controls/textfield/textfield_views_model.cc File ui/views/controls/textfield/textfield_views_model.cc (right): http://codereview.chromium.org/8823007/diff/5001/ui/views/controls/textfield/textfield_views_model.cc#newcode62 ui/views/controls/textfield/textfield_views_model.cc:62: // user ...
9 years ago (2011-12-07 01:23:35 UTC) #4
oshima
http://codereview.chromium.org/8823007/diff/5001/ui/views/controls/textfield/textfield_views_model.cc File ui/views/controls/textfield/textfield_views_model.cc (right): http://codereview.chromium.org/8823007/diff/5001/ui/views/controls/textfield/textfield_views_model.cc#newcode62 ui/views/controls/textfield/textfield_views_model.cc:62: // user deletes characters then hit return. In this ...
9 years ago (2011-12-07 01:26:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/8823007/4005
9 years ago (2011-12-07 01:26:49 UTC) #6
commit-bot: I haz the power
Presubmit check for 8823007-4005 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-07 01:26:51 UTC) #7
oshima
ben can you approve this?
9 years ago (2011-12-07 03:36:03 UTC) #8
Ben Goodger (Google)
lgtm
9 years ago (2011-12-07 22:34:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/8823007/4005
9 years ago (2011-12-07 23:32:08 UTC) #10
commit-bot: I haz the power
9 years ago (2011-12-08 01:41:18 UTC) #11
Change committed as 113525

Powered by Google App Engine
This is Rietveld 408576698