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

Issue 2533703002: Don't refer to removed spans when reformulating pasted content. (Closed)

Created:
4 years ago by dominicc (has gone to gerrit)
Modified:
4 years ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't refer to removed spans when reformulating pasted content. ReplaceSelectionCommand::doApply repeatedly rewrites the DOM to fix up the content it is inserting. One of those modifications--removing redundant inline styles--may end up deleting the very span it is tracking the insertion of. This moves the node of interest into the InsertedNodes collection. As the inserted nodes collection is modified, it adjusts the node of interest to a surviving node. BUG=668808 Committed: https://crrev.com/4e0fd330ee36ef618fba35a0dc9e0b3d5b5dce3f Cr-Commit-Position: refs/heads/master@{#434930}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -20 lines) Patch
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 1 7 chunks +36 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
dominicc (has gone to gerrit)
PTAL
4 years ago (2016-11-28 08:13:02 UTC) #2
yosin_UTC9
lgtm w/ small nit Thanks for working on ReplaceSelectionCommand! It is one of complex implementations ...
4 years ago (2016-11-29 02:04:22 UTC) #7
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/2533703002/20001
4 years ago (2016-11-29 05:28:15 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 08:30:29 UTC) #12
commit-bot: I haz the power
4 years ago (2016-11-29 08:31:57 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4e0fd330ee36ef618fba35a0dc9e0b3d5b5dce3f
Cr-Commit-Position: refs/heads/master@{#434930}

Powered by Google App Engine
This is Rietveld 408576698