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

Issue 2122003003: Make ReplaceSelectionCommand to handle empty SPAN replacement (Closed)

Created:
4 years, 5 months ago by yosin_UTC9
Modified:
4 years, 5 months ago
Reviewers:
yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ReplaceSelectionCommand to handle empty SPAN replacement This patch makes |ReplaceSelectionCommand| to handle empty SPAN replacement. Before this patch, it crashes at |SimplifyMarkupCommand::doApply()| with null pointer reference passed by |ReplaceSelectionCommand| with null |insertNodes.firstNodeInserted()|. BUG=619131 TEST=run_webkit_unit_tests --gtest_filter=ReplaceSelectionCommandTest.pastingEmptySpan Committed: https://crrev.com/cd80804c61b6d9578a633d3546043d03aecdf27b Cr-Commit-Position: refs/heads/master@{#404075}

Patch Set 1 : 2016-07-06T14:51:16 #

Patch Set 2 : 2016-07-07T10:52:58 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp View 1 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
yosin_UTC9
PTAL
4 years, 5 months ago (2016-07-07 02:28:26 UTC) #4
Xiaocheng
lgtm
4 years, 5 months ago (2016-07-07 02:49:06 UTC) #5
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/2122003003/20001
4 years, 5 months ago (2016-07-07 03:29:53 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-07 04:42:07 UTC) #8
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 04:42:13 UTC) #9
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 04:44:06 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cd80804c61b6d9578a633d3546043d03aecdf27b
Cr-Commit-Position: refs/heads/master@{#404075}

Powered by Google App Engine
This is Rietveld 408576698