Index: Source/core/editing/TypingCommand.cpp |
diff --git a/Source/core/editing/TypingCommand.cpp b/Source/core/editing/TypingCommand.cpp |
index 694404ee9587a537efe5578f3c221ab9b302131c..d3b8864706f026488af592b08d9999d04a4b9d24 100644 |
--- a/Source/core/editing/TypingCommand.cpp |
+++ b/Source/core/editing/TypingCommand.cpp |
@@ -464,7 +464,7 @@ void TypingCommand::deleteKeyPressed(TextGranularity granularity, bool killRing) |
// Extend the selection backward into the last cell, then deletion will handle the move. |
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)) { |
+ } else if (Element* table = isFirstPositionAfterTable(visibleStart)) { |
setEndingSelection(VisibleSelection(positionBeforeNode(table), endingSelection().start(), DOWNSTREAM, endingSelection().isDirectional())); |
typingAddedToOpenCommand(DeleteKey); |
return; |
@@ -547,7 +547,7 @@ void TypingCommand::forwardDeleteKeyPressed(TextGranularity granularity, bool ki |
if (visibleEnd == endOfParagraph(visibleEnd)) |
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())) { |
+ if (isRenderedTableElement(downstreamEnd.containerNode()) && downstreamEnd.computeOffsetInContainerNode() <= caretMinOffset(downstreamEnd.containerNode())) { |
setEndingSelection(VisibleSelection(endingSelection().end(), positionAfterNode(downstreamEnd.containerNode()), DOWNSTREAM, endingSelection().isDirectional())); |
typingAddedToOpenCommand(ForwardDeleteKey); |
return; |