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

Unified Diff: Source/core/editing/ApplyStyleCommand.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/dom/NodeTraversal.cpp ('k') | Source/core/editing/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ApplyStyleCommand.cpp
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp
index 15196feb21075331628e055ee50ae9e65024c3b2..0f8f5b3feb6ce8f34edf26e7d2d6c032c48dfe6a 100644
--- a/Source/core/editing/ApplyStyleCommand.cpp
+++ b/Source/core/editing/ApplyStyleCommand.cpp
@@ -1115,7 +1115,7 @@ void ApplyStyleCommand::removeInlineStyle(EditingStyle* style, const Position &s
}
if (node->isHTMLElement() && nodeFullySelected(node.get(), start, end)) {
RefPtr<HTMLElement> elem = toHTMLElement(node);
- RefPtr<Node> prev = NodeTraversal::previousPostOrder(elem.get());
+ RefPtr<Node> prev = NodeTraversal::previousPostOrder(*elem);
RefPtr<Node> next = NodeTraversal::next(*elem);
RefPtr<EditingStyle> styleToPushDown;
RefPtr<Node> childNode;
« no previous file with comments | « Source/core/dom/NodeTraversal.cpp ('k') | Source/core/editing/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698