Index: Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp |
=================================================================== |
--- Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp (revision 139392) |
+++ Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp (working copy) |
@@ -119,7 +119,7 @@ |
enclosingBlock->hasTagName(h5Tag); |
} |
-void InsertParagraphSeparatorCommand::getAncestorsInsideBlock(const Node* insertionNode, Element* outerBlock, Vector<Element*>& ancestors) |
+void InsertParagraphSeparatorCommand::getAncestorsInsideBlock(const Node* insertionNode, Element* outerBlock, Vector<RefPtr<Element> >& ancestors) |
{ |
ancestors.clear(); |
@@ -130,7 +130,7 @@ |
} |
} |
-PassRefPtr<Element> InsertParagraphSeparatorCommand::cloneHierarchyUnderNewBlock(const Vector<Element*>& ancestors, PassRefPtr<Element> blockToInsert) |
+PassRefPtr<Element> InsertParagraphSeparatorCommand::cloneHierarchyUnderNewBlock(const Vector<RefPtr<Element> >& ancestors, PassRefPtr<Element> blockToInsert) |
{ |
// Make clones of ancestors in between the start node and the start block. |
RefPtr<Element> parent = blockToInsert; |
@@ -239,7 +239,7 @@ |
// Recreate the same structure in the new paragraph. |
- Vector<Element*> ancestors; |
+ Vector<RefPtr<Element> > ancestors; |
getAncestorsInsideBlock(positionOutsideTabSpan(insertionPosition).deprecatedNode(), startBlock.get(), ancestors); |
RefPtr<Element> parent = cloneHierarchyUnderNewBlock(ancestors, blockToInsert); |
@@ -278,7 +278,7 @@ |
// Recreate the same structure in the new paragraph. |
- Vector<Element*> ancestors; |
+ Vector<RefPtr<Element> > ancestors; |
getAncestorsInsideBlock(positionAvoidingSpecialElementBoundary(positionOutsideTabSpan(insertionPosition)).deprecatedNode(), startBlock.get(), ancestors); |
appendBlockPlaceholder(cloneHierarchyUnderNewBlock(ancestors, blockToInsert)); |