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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp

Issue 2397023002: Reflow comments in //third_party/WebKit/Source/core/editing/spellcheck (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
index e5a0bffe106ab588d0d9ff50f274dbbce1c0bfcf..a6e24d5fa5445b4fd9b4ba90995e3e3fa62a5d9f 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
@@ -217,14 +217,15 @@ void SpellCheckRequester::enqueueRequest(SpellCheckRequest* request) {
bool continuation = false;
if (!m_requestQueue.isEmpty()) {
SpellCheckRequest* lastRequest = m_requestQueue.last();
- // It's a continuation if the number of the last request got incremented in the new one and
- // both apply to the same editable.
+ // It's a continuation if the number of the last request got incremented in
+ // the new one and both apply to the same editable.
continuation =
request->rootEditableElement() == lastRequest->rootEditableElement() &&
request->requestNumber() == lastRequest->requestNumber() + 1;
}
- // Spellcheck requests for chunks of text in the same element should not overwrite each other.
+ // Spellcheck requests for chunks of text in the same element should not
+ // overwrite each other.
if (!continuation) {
for (auto& requestQueue : m_requestQueue) {
if (request->rootEditableElement() != requestQueue->rootEditableElement())
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698