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

Issue 2595783002: [Editing] Add null check in |DeleteSelectionCommand::removeRedundantBlocks()| (Closed)

Created:
4 years ago by chongz
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Editing] Add null check in |DeleteSelectionCommand::removeRedundantBlocks()| The root cause is we are removing & re-inserting children nodes during |CompositeEditCommand::removeNodePreservingChildren()|, which means if the child contains style "* {-webkit-user-modify: read-write;}" we won't be able to re-insert it back as parent has lost editable attribute as soon as we've removed it. BUG=675727 Committed: https://crrev.com/3c4ea2111cb111f66c87f8cd6bf3909eeaa15c9b Cr-Commit-Position: refs/heads/master@{#440459}

Patch Set 1 #

Patch Set 2 : xiaochengh's review: Add layout test #

Total comments: 6

Patch Set 3 : Review 2&3: Add bug number to test; Tweak test description #

Patch Set 4 : dominicc's suggestion: Use unit test instead of layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/editing/commands/ApplyStyleCommandTest.cpp View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 60 (48 generated)
chongz
xiaochengh@ PTAL, thanks!
4 years ago (2016-12-21 02:03:45 UTC) #11
Xiaocheng
Please add a regression test. A unit test is preferred. The clusterfuzz-minimized test case is ...
4 years ago (2016-12-21 02:47:41 UTC) #12
chongz
xiaochengh@ I've added a simpler layout test and updated CL description, does that look good ...
4 years ago (2016-12-22 00:06:43 UTC) #25
Xiaocheng
I agree that it's a little bit tricky to make it a unit test, so ...
4 years ago (2016-12-22 03:25:52 UTC) #29
Xiaocheng
On 2016/12/22 at 03:25:52, Xiaocheng wrote: > I agree that it's a little bit tricky ...
4 years ago (2016-12-22 03:27:18 UTC) #30
dominicc (has gone to gerrit)
Your change description is really clear, very nice. I don't think you need to mention ...
4 years ago (2016-12-22 03:56:33 UTC) #32
chongz
dominicc@ Thanks for the review! I've: 1. Added bug number to layout test; 2. Removed ...
4 years ago (2016-12-22 05:14:50 UTC) #44
dominicc (has gone to gerrit)
lgtm LGTM, thank you. Use your judgement about including the unit test. I think you ...
4 years ago (2016-12-22 12:11:06 UTC) #47
chongz
On 2016/12/22 12:11:06, dominicc (away 12.23-1.10) wrote: > lgtm > > LGTM, thank you. > ...
4 years ago (2016-12-22 18:49:34 UTC) #52
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/2595783002/120001
4 years ago (2016-12-22 18:50:26 UTC) #55
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years ago (2016-12-22 18:54:48 UTC) #58
commit-bot: I haz the power
4 years ago (2016-12-22 18:57:10 UTC) #60
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3c4ea2111cb111f66c87f8cd6bf3909eeaa15c9b
Cr-Commit-Position: refs/heads/master@{#440459}

Powered by Google App Engine
This is Rietveld 408576698