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

Unified Diff: Source/core/editing/Editor.cpp

Issue 23703016: [blink] Use functions for AllMarkers and MisspellingMarkers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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: Source/core/editing/Editor.cpp
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
index 114338e247f15db2bd358f8afd61952819aebf70..49417bc6ff958a71643c1257ea58bb586d6c4343 100644
--- a/Source/core/editing/Editor.cpp
+++ b/Source/core/editing/Editor.cpp
@@ -1388,7 +1388,7 @@ void Editor::clearMisspellingsAndBadGrammar(const VisibleSelection &movingSelect
{
RefPtr<Range> selectedRange = movingSelection.toNormalizedRange();
if (selectedRange)
- frame().document()->markers()->removeMarkers(selectedRange.get(), DocumentMarker::MisspellingMarkers());
+ frame().document()->markers()->removeMarkers(selectedRange.get(), DocumentMarker::misspellingMarkers());
}
void Editor::markMisspellingsAndBadGrammar(const VisibleSelection &movingSelection)
@@ -1750,7 +1750,7 @@ void Editor::updateMarkersForWordsAffectedByEditing(bool doNotRemoveIfSelectionA
ASSERT(document);
RefPtr<Range> wordRange = Range::create(*document, startOfFirstWord.deepEquivalent(), endOfLastWord.deepEquivalent());
- document->markers()->removeMarkers(wordRange.get(), DocumentMarker::MisspellingMarkers(), DocumentMarkerController::RemovePartiallyOverlappingMarker);
+ document->markers()->removeMarkers(wordRange.get(), DocumentMarker::misspellingMarkers(), DocumentMarkerController::RemovePartiallyOverlappingMarker);
}
PassRefPtr<Range> Editor::rangeForPoint(const IntPoint& windowPoint)

Powered by Google App Engine
This is Rietveld 408576698