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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 479803002: Made code conform to blink's coding guidelines and improved performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/dom/DocumentMarkerController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index aa468f7845fc73ca67a03c03aed5b0c34221ea75..6093a9eb3e87402059d6dc759f12fb5ba494b355 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3422,14 +3422,12 @@ void WebViewImpl::spellingMarkers(WebVector<uint32_t>* markers)
void WebViewImpl::removeSpellingMarkersUnderWords(const WebVector<WebString>& words)
{
- for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
- if (!frame->isLocalFrame())
- continue;
+ Vector<String> convertedWords;
+ convertedWords.append(words.data(), words.size());
- Vector<String> convertedWords;
- convertedWords.append(words.data(), words.size());
-
- toLocalFrame(frame)->removeSpellingMarkersUnderWords(convertedWords);
+ for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
+ if (frame->isLocalFrame())
+ toLocalFrame(frame)->removeSpellingMarkersUnderWords(convertedWords);
}
}
« no previous file with comments | « Source/core/dom/DocumentMarkerController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698