OLD | NEW |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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().RemoveMarkers( |
112 current_word, DocumentMarker::MisspellingMarkers(), | 112 current_word, DocumentMarker::MisspellingMarkers()); |
113 DocumentMarkerController::kRemovePartiallyOverlappingMarker); | |
114 return; | 113 return; |
115 } | 114 } |
116 | 115 |
117 const EphemeralRange& checking_range = | 116 const EphemeralRange& checking_range = |
118 CalculateHotModeCheckingRange(*root_editable, position); | 117 CalculateHotModeCheckingRange(*root_editable, position); |
119 requester_->RequestCheckingFor(checking_range); | 118 requester_->RequestCheckingFor(checking_range); |
120 } | 119 } |
121 | 120 |
122 } // namespace blink | 121 } // namespace blink |
OLD | NEW |