summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/MoveSelectionCommand.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/editing/MoveSelectionCommand.cpp
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/editing/MoveSelectionCommand.cpp')
-rw-r--r--WebCore/editing/MoveSelectionCommand.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/WebCore/editing/MoveSelectionCommand.cpp b/WebCore/editing/MoveSelectionCommand.cpp
index b2637a7..08587cb 100644
--- a/WebCore/editing/MoveSelectionCommand.cpp
+++ b/WebCore/editing/MoveSelectionCommand.cpp
@@ -37,10 +37,6 @@ MoveSelectionCommand::MoveSelectionCommand(PassRefPtr<DocumentFragment> fragment
ASSERT(m_fragment);
}
-MoveSelectionCommand::~MoveSelectionCommand()
-{
-}
-
void MoveSelectionCommand::doApply()
{
Selection selection = endingSelection();
@@ -74,7 +70,7 @@ void MoveSelectionCommand::doApply()
pos = endingSelection().start();
setEndingSelection(Selection(pos, endingSelection().affinity()));
- applyCommandToComposite(new ReplaceSelectionCommand(positionNode->document(), m_fragment.get(), true, m_smartMove));
+ applyCommandToComposite(ReplaceSelectionCommand::create(positionNode->document(), m_fragment, true, m_smartMove));
}
EditAction MoveSelectionCommand::editingAction() const