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

Unified Diff: Source/web/WebFrameImpl.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
« Source/core/dom/DocumentMarker.h ('K') | « Source/web/EditorClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index 5a53a30f4d295dcf33e9b43264495b136ca34d42..6db517ddc2146152ad52964ef7f3ef92d5e608dd 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -1230,7 +1230,7 @@ void WebFrameImpl::replaceMisspelledRange(const WebString& text)
RefPtr<Range> caretRange = frame()->selection().toNormalizedRange();
if (!caretRange)
return;
- Vector<DocumentMarker*> markers = frame()->document()->markers()->markersInRange(caretRange.get(), DocumentMarker::MisspellingMarkers());
+ Vector<DocumentMarker*> markers = frame()->document()->markers()->markersInRange(caretRange.get(), DocumentMarker::misspellingMarkers());
if (markers.size() < 1 || markers[0]->startOffset() >= markers[0]->endOffset())
return;
RefPtr<Range> markerRange = Range::create(caretRange->ownerDocument(), caretRange->startContainer(), markers[0]->startOffset(), caretRange->endContainer(), markers[0]->endOffset());
@@ -1244,7 +1244,7 @@ void WebFrameImpl::replaceMisspelledRange(const WebString& text)
void WebFrameImpl::removeSpellingMarkers()
{
- frame()->document()->markers()->removeMarkers(DocumentMarker::MisspellingMarkers());
+ frame()->document()->markers()->removeMarkers(DocumentMarker::misspellingMarkers());
}
bool WebFrameImpl::hasSelection() const
« Source/core/dom/DocumentMarker.h ('K') | « Source/web/EditorClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698