| Index: Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
|
| ===================================================================
|
| --- Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp (revision 139393)
|
| +++ Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp (working copy)
|
| @@ -120,7 +120,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();
|
|
|
| @@ -131,7 +131,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;
|
| @@ -240,7 +240,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);
|
|
|
| @@ -279,7 +279,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));
|
|
|