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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/ColdModeSpellCheckRequester.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/ColdModeSpellCheckRequester.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/ColdModeSpellCheckRequester.cpp b/third_party/WebKit/Source/core/editing/spellcheck/ColdModeSpellCheckRequester.cpp
index 5d5ebb66b0a7a042a375f1559a46845ed08254e7..4f813392218412a91f19d4ac2dda2af89f45efb1 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/ColdModeSpellCheckRequester.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/ColdModeSpellCheckRequester.cpp
@@ -149,7 +149,7 @@ void ColdModeSpellCheckRequester::RequestCheckingForNextChunk() {
const Position& chunk_end =
CalculateCharacterSubrange(
EphemeralRange(current_chunk_start_,
- Position::LastPositionInNode(current_root_editable_)),
+ Position::LastPositionInNode(*current_root_editable_)),
0, kColdModeChunkSize)
.EndPosition();
if (chunk_end <= current_chunk_start_) {

Powered by Google App Engine
This is Rietveld 408576698