Index: Source/core/editing/ReplaceSelectionCommand.cpp |
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
index c3f573895206e17ee60786ecb2406fd145f8d063..c5d8f7914612981e09e8f8772b5e6595423dfc11 100644 |
--- a/Source/core/editing/ReplaceSelectionCommand.cpp |
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp |
@@ -675,7 +675,6 @@ void ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds(InsertedNodes& ins |
// We don't have to make sure that firstNodeInserted isn't inside a select or script element, because |
// it is a top level node in the fragment and the user can't insert into those elements. |
Node* firstNodeInserted = insertedNodes.firstNodeInserted(); |
- lastLeafInserted = insertedNodes.lastLeafInserted(); |
if (firstNodeInserted && firstNodeInserted->isTextNode() && !nodeHasVisibleRenderText(toText(firstNodeInserted))) { |
insertedNodes.willRemoveNode(firstNodeInserted); |
removeNode(firstNodeInserted); |