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

Unified Diff: Source/core/dom/Text.cpp

Issue 68523014: Update remaining NodeTraversal / ElementTraversal methods to take references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix build 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/dom/NodeTraversal.cpp ('k') | Source/core/rendering/CounterNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Text.cpp
diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
index 56b7314d0d73e36e21da40e59aea3d503b2598f3..23e98bc6db44bcb73dc010653e6c73f3219ea18d 100644
--- a/Source/core/dom/Text.cpp
+++ b/Source/core/dom/Text.cpp
@@ -60,7 +60,7 @@ PassRefPtr<Node> Text::mergeNextSiblingNodesIfPossible()
// Remove empty text nodes.
if (!length()) {
// Care must be taken to get the next node before removing the current node.
- RefPtr<Node> nextNode(NodeTraversal::nextPostOrder(this));
+ RefPtr<Node> nextNode(NodeTraversal::nextPostOrder(*this));
remove(IGNORE_EXCEPTION);
return nextNode.release();
}
@@ -94,7 +94,7 @@ PassRefPtr<Node> Text::mergeNextSiblingNodesIfPossible()
nextText->remove(IGNORE_EXCEPTION);
}
- return NodeTraversal::nextPostOrder(this);
+ return NodeTraversal::nextPostOrder(*this);
}
PassRefPtr<Text> Text::splitText(unsigned offset, ExceptionState& es)
« no previous file with comments | « Source/core/dom/NodeTraversal.cpp ('k') | Source/core/rendering/CounterNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698