Index: Source/core/editing/CompositeEditCommand.cpp |
diff --git a/Source/core/editing/CompositeEditCommand.cpp b/Source/core/editing/CompositeEditCommand.cpp |
index d72e31c4f85cbfc478296ea131696222dcb9b99f..88f304939286cbf1e53d30287d971f16bbf28559 100644 |
--- a/Source/core/editing/CompositeEditCommand.cpp |
+++ b/Source/core/editing/CompositeEditCommand.cpp |
@@ -977,7 +977,7 @@ void CompositeEditCommand::cloneParagraphUnderNewElement(Position& start, Positi |
if (outerNode->isRootEditableElement()) { |
lastNode = blockElement; |
} else { |
- lastNode = outerNode->cloneNode(isTableElement(outerNode.get())); |
+ lastNode = outerNode->cloneNode(isRenderedTable(outerNode.get())); |
appendNode(lastNode, blockElement); |
} |
@@ -992,7 +992,7 @@ void CompositeEditCommand::cloneParagraphUnderNewElement(Position& start, Positi |
for (size_t i = ancestors.size(); i != 0; --i) { |
Node* item = ancestors[i - 1].get(); |
- RefPtr<Node> child = item->cloneNode(isTableElement(item)); |
+ RefPtr<Node> child = item->cloneNode(isRenderedTable(item)); |
appendNode(child, toElement(lastNode)); |
lastNode = child.release(); |
} |
@@ -1122,7 +1122,7 @@ void CompositeEditCommand::moveParagraphWithClones(const VisiblePosition& startO |
beforeParagraph = VisiblePosition(beforeParagraph.deepEquivalent()); |
afterParagraph = VisiblePosition(afterParagraph.deepEquivalent()); |
- if (beforeParagraph.isNotNull() && !isTableElement(beforeParagraph.deepEquivalent().deprecatedNode()) |
+ if (beforeParagraph.isNotNull() && !isRenderedTable(beforeParagraph.deepEquivalent().deprecatedNode()) |
&& ((!isEndOfParagraph(beforeParagraph) && !isStartOfParagraph(beforeParagraph)) || beforeParagraph == afterParagraph)) { |
// FIXME: Trim text between beforeParagraph and afterParagraph if they aren't equal. |
insertNodeAt(createBreakElement(document()), beforeParagraph.deepEquivalent()); |