Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index e6cf59872f4c05426d3870e5c63e2357132f7596..06f1147b7c0d07754ff2752d1c38f3f41402f021 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1833,6 +1833,14 @@ void WebLocalFrameImpl::willDetachParent() |
} |
} |
+void WebLocalFrameImpl::removeSpellingMarkersUnderWords(const WebVector<WebString>& words) |
+{ |
+ WTF::Vector<String> convertedWords(words.size()); |
tkent
2014/08/14 01:17:14
|WTF::Vector| should be |Vector|.
Klemen Forstnerič
2014/08/14 16:42:54
Done.
|
+ std::copy(words.data(), words.data() + words.size(), std::begin(convertedWords)); |
tkent
2014/08/14 01:17:15
This works and is ok. However,
convertedWords
Klemen Forstnerič
2014/08/14 16:42:54
You're right, it seems easier to understand. I've
|
+ |
+ frame()->spellChecker().removeSpellingMarkersUnderWords(convertedWords); |
+} |
+ |
WebLocalFrameImpl* WebLocalFrameImpl::activeMatchFrame() const |
{ |
ASSERT(!parent()); |