Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: Source/core/editing/Editor.cpp

Issue 67473002: Have ElementTraversal / NodeTraversal's next() methods take a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/EditingStyle.cpp ('k') | Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/editing/EditingStyle.cpp ('k') | Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698