Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index 980cf5b097456b9d31c8cdf38bd4318bd159f7f7..549ba04398b4f2033e020a1f1543fb5a6ea937ba 100644 |
--- a/Source/core/editing/Editor.cpp |
+++ b/Source/core/editing/Editor.cpp |
@@ -978,13 +978,13 @@ void Editor::simplifyMarkup(Node* startNode, Node* endNode) |
// check if start node is before endNode |
Node* node = startNode; |
while (node && node != endNode) |
- node = NodeTraversal::next(node); |
+ node = NodeTraversal::next(*node); |
if (!node) |
return; |
} |
ASSERT(m_frame.document()); |
- SimplifyMarkupCommand::create(*m_frame.document(), startNode, endNode ? NodeTraversal::next(endNode) : 0)->apply(); |
+ SimplifyMarkupCommand::create(*m_frame.document(), startNode, endNode ? NodeTraversal::next(*endNode) : 0)->apply(); |
} |
void Editor::copyImage(const HitTestResult& result) |