Index: Source/core/editing/CompositeEditCommand.cpp |
diff --git a/Source/core/editing/CompositeEditCommand.cpp b/Source/core/editing/CompositeEditCommand.cpp |
index 347ac2327d316a91d21c1b7406adb667949d06b9..efee09a053eb4a66d61213f424479a1f6622ccd7 100644 |
--- a/Source/core/editing/CompositeEditCommand.cpp |
+++ b/Source/core/editing/CompositeEditCommand.cpp |
@@ -999,7 +999,7 @@ void CompositeEditCommand::cloneParagraphUnderNewElement(const Position& start, |
if (outerNode->isRootEditableElement()) { |
lastNode = blockElement; |
} else { |
- lastNode = outerNode->cloneNode(isRenderedTableElement(outerNode.get())); |
+ lastNode = outerNode->cloneNode(isRenderedHTMLTableElement(outerNode.get())); |
appendNode(lastNode, blockElement); |
} |
@@ -1014,7 +1014,7 @@ void CompositeEditCommand::cloneParagraphUnderNewElement(const Position& start, |
for (size_t i = ancestors.size(); i != 0; --i) { |
Node* item = ancestors[i - 1].get(); |
- RefPtrWillBeRawPtr<Node> child = item->cloneNode(isRenderedTableElement(item)); |
+ RefPtrWillBeRawPtr<Node> child = item->cloneNode(isRenderedHTMLTableElement(item)); |
appendNode(child, toElement(lastNode)); |
lastNode = child.release(); |
} |
@@ -1152,7 +1152,7 @@ void CompositeEditCommand::moveParagraphWithClones(const VisiblePosition& startO |
beforeParagraph = VisiblePosition(beforeParagraph.deepEquivalent()); |
afterParagraph = VisiblePosition(afterParagraph.deepEquivalent()); |
- if (beforeParagraph.isNotNull() && !isRenderedTable(beforeParagraph.deepEquivalent().deprecatedNode()) |
+ if (beforeParagraph.isNotNull() && !isRenderedTableElement(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()); |