Chromium Code Reviews
DescriptionDon'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. #
Messages
Total messages: 14 (9 generated)
|
|||||||||||||||||||||||||||||||||||||