Index: Source/core/editing/TypingCommand.cpp |
diff --git a/Source/core/editing/TypingCommand.cpp b/Source/core/editing/TypingCommand.cpp |
index c68ecdaf7ff9d232b1c4f7a54cc184ee9e10b271..c71b240e45bdb6b7dc3f2627a926e3f520bf390c 100644 |
--- a/Source/core/editing/TypingCommand.cpp |
+++ b/Source/core/editing/TypingCommand.cpp |
@@ -530,8 +530,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 (downstreamEnd.containerNode() && downstreamEnd.containerNode()->renderer() && downstreamEnd.containerNode()->renderer()->isTable() |
- && downstreamEnd.computeOffsetInContainerNode() <= caretMinOffset(downstreamEnd.containerNode())) { |
+ if (isRenderedTable(downstreamEnd.containerNode()) && downstreamEnd.computeOffsetInContainerNode() <= caretMinOffset(downstreamEnd.containerNode())) { |
setEndingSelection(VisibleSelection(endingSelection().end(), positionAfterNode(downstreamEnd.containerNode()), DOWNSTREAM, endingSelection().isDirectional())); |
typingAddedToOpenCommand(ForwardDeleteKey); |
return; |