Index: Source/core/editing/TypingCommand.cpp |
diff --git a/Source/core/editing/TypingCommand.cpp b/Source/core/editing/TypingCommand.cpp |
index 41de0d9480d83b2dd1809120236bb3964f49b47a..1356b424d3d6dced77da555a7ea65c00726fafb1 100644 |
--- a/Source/core/editing/TypingCommand.cpp |
+++ b/Source/core/editing/TypingCommand.cpp |
@@ -458,7 +458,7 @@ |
selection.modify(FrameSelection::AlterationExtend, DirectionBackward, granularity); |
// If the caret is just after a table, select the table and don't delete anything. |
} else if (Node* table = isFirstPositionAfterTable(visibleStart)) { |
- setEndingSelection(VisibleSelection(positionBeforeNode(*table), endingSelection().start(), DOWNSTREAM, endingSelection().isDirectional())); |
+ setEndingSelection(VisibleSelection(positionBeforeNode(table), endingSelection().start(), DOWNSTREAM, endingSelection().isDirectional())); |
typingAddedToOpenCommand(DeleteKey); |
return; |
} |
@@ -541,7 +541,7 @@ |
downstreamEnd = visibleEnd.next(CannotCrossEditingBoundary).deepEquivalent().downstream(); |
// When deleting tables: Select the table first, then perform the deletion |
if (isRenderedTable(downstreamEnd.containerNode()) && downstreamEnd.computeOffsetInContainerNode() <= caretMinOffset(downstreamEnd.containerNode())) { |
- setEndingSelection(VisibleSelection(endingSelection().end(), positionAfterNode(*downstreamEnd.containerNode()), DOWNSTREAM, endingSelection().isDirectional())); |
+ setEndingSelection(VisibleSelection(endingSelection().end(), positionAfterNode(downstreamEnd.containerNode()), DOWNSTREAM, endingSelection().isDirectional())); |
typingAddedToOpenCommand(ForwardDeleteKey); |
return; |
} |