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

Unified Diff: Source/WebKit/chromium/src/WebFrameImpl.cpp

Issue 13896014: Enable removing spelling markers in a frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebFrameImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebFrameImpl.cpp b/Source/WebKit/chromium/src/WebFrameImpl.cpp
index 613eb5fa5793aa265667b18a8b9671810049ff31..90047d0c7d8cc456ddb806502d8b62271d7da3c4 100644
--- a/Source/WebKit/chromium/src/WebFrameImpl.cpp
+++ b/Source/WebKit/chromium/src/WebFrameImpl.cpp
@@ -1293,6 +1293,11 @@ void WebFrameImpl::replaceMisspelledRange(const WebString& text)
frame()->editor()->replaceSelectionWithText(text, false, false);
}
+void WebFrameImpl::removeSpellingMarkers()
+{
+ frame()->document()->markers()->removeMarkers(DocumentMarker::Spelling | DocumentMarker::Grammar);
+}
+
bool WebFrameImpl::hasSelection() const
{
WebPluginContainerImpl* pluginContainer = pluginContainerFromFrame(frame());

Powered by Google App Engine
This is Rietveld 408576698