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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 2962473002: Make Position::LastPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-26T14:00:00 Created 3 years, 6 months 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
Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
index 51037726195807c88f997690ea925479267dc92b..5ef7ef6ffb8d1b7025917462fdcc47b144c52a51 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -538,7 +538,7 @@ void SpellChecker::MarkMisspellingsAfterReplaceSelectionCommand(
return;
EphemeralRange paragraph_range(Position::FirstPositionInNode(*node),
- Position::LastPositionInNode(node));
+ Position::LastPositionInNode(*node));
TextCheckingParagraph text_to_check(inserted_range, paragraph_range);
ChunkAndMarkAllMisspellings(text_to_check);
}

Powered by Google App Engine
This is Rietveld 408576698