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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.cpp

Issue 2830213002: [DMC #1.911] Rename DocumentMarkerController::RemoveMarkers() to RemoveMarkersInRange() (Closed)
Patch Set: Remove dependency Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/editing/spellcheck/HotModeSpellCheckRequester.h" 5 #include "core/editing/spellcheck/HotModeSpellCheckRequester.h"
6 6
7 #include "core/editing/EditingUtilities.h" 7 #include "core/editing/EditingUtilities.h"
8 #include "core/editing/Editor.h" 8 #include "core/editing/Editor.h"
9 #include "core/editing/VisiblePosition.h" 9 #include "core/editing/VisiblePosition.h"
10 #include "core/editing/commands/CompositeEditCommand.h" 10 #include "core/editing/commands/CompositeEditCommand.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (processed_root_editables_.Contains(root_editable)) 101 if (processed_root_editables_.Contains(root_editable))
102 return; 102 return;
103 processed_root_editables_.push_back(root_editable); 103 processed_root_editables_.push_back(root_editable);
104 104
105 if (!IsUnderActiveEditing(*root_editable, position)) 105 if (!IsUnderActiveEditing(*root_editable, position))
106 return; 106 return;
107 107
108 const EphemeralRange& current_word = 108 const EphemeralRange& current_word =
109 CurrentWordIfTypingInPartialWord(*root_editable); 109 CurrentWordIfTypingInPartialWord(*root_editable);
110 if (current_word.IsNotNull()) { 110 if (current_word.IsNotNull()) {
111 root_editable->GetDocument().Markers().RemoveMarkers( 111 root_editable->GetDocument().Markers().RemoveMarkersInRange(
112 current_word, DocumentMarker::MisspellingMarkers()); 112 current_word, DocumentMarker::MisspellingMarkers());
113 return; 113 return;
114 } 114 }
115 115
116 const EphemeralRange& checking_range = 116 const EphemeralRange& checking_range =
117 CalculateHotModeCheckingRange(*root_editable, position); 117 CalculateHotModeCheckingRange(*root_editable, position);
118 requester_->RequestCheckingFor(checking_range); 118 requester_->RequestCheckingFor(checking_range);
119 } 119 }
120 120
121 } // namespace blink 121 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698