Chromium Code Reviews| Index: Source/web/WebLocalFrameImpl.cpp |
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
| index e6cf59872f4c05426d3870e5c63e2357132f7596..9be793b5491e3011c721a5dbbf8b8768fd0d6931 100644 |
| --- a/Source/web/WebLocalFrameImpl.cpp |
| +++ b/Source/web/WebLocalFrameImpl.cpp |
| @@ -1833,6 +1833,15 @@ void WebLocalFrameImpl::willDetachParent() |
| } |
| } |
| +void WebLocalFrameImpl::removeSpellingMarkersUnderWords(const WebVector<WebString>& words) |
| +{ |
| + Vector<String> transformedWords; |
|
yosin_UTC9
2014/08/11 01:01:59
nit: Since we know size of transformedWords, it is
Klemen Forstnerič
2014/08/11 16:24:49
Thats a good idea and to better state my intention
|
| + for (size_t i = 0; i < words.size(); ++i) |
| + transformedWords.append(words[i]); |
| + |
| + frame()->spellChecker().removeSpellingMarkersUnderWords(transformedWords); |
| +} |
| + |
| WebLocalFrameImpl* WebLocalFrameImpl::activeMatchFrame() const |
| { |
| ASSERT(!parent()); |