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

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

Issue 69003004: Have NodeTraversal::previous*() take a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/ApplyStyleCommand.cpp ('k') | Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ReplaceSelectionCommand.cpp
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
index 3f6691d3d0ee2461759ecfebc3230e46b7fae6de..f86777b2ee129597dcadf87fefacdf53da26695b 100644
--- a/Source/core/editing/ReplaceSelectionCommand.cpp
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp
@@ -346,7 +346,7 @@ inline void ReplaceSelectionCommand::InsertedNodes::willRemoveNode(Node& node)
} else if (m_firstNodeInserted == node)
m_firstNodeInserted = NodeTraversal::nextSkippingChildren(m_firstNodeInserted.get());
else if (m_lastNodeInserted == node)
- m_lastNodeInserted = NodeTraversal::previousSkippingChildren(m_lastNodeInserted.get());
+ m_lastNodeInserted = NodeTraversal::previousSkippingChildren(*m_lastNodeInserted);
}
inline void ReplaceSelectionCommand::InsertedNodes::didReplaceNode(Node& node, Node& newNode)
« no previous file with comments | « Source/core/editing/ApplyStyleCommand.cpp ('k') | Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698