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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp

Issue 2397033002: Reflow comments in //third_party/WebKit/Source/core/editing/iterators (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 | « third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp
index 0cbd464851801942149b6536941a6d97bc842a88..4de5edf332cb94b6a6416d97ca2dba22ba241b9c 100644
--- a/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
+ * rights reserved.
* Copyright (C) 2005 Alexey Proskuryakov.
*
* Redistribution and use in source and binary forms, with or without
@@ -37,7 +38,8 @@ WordAwareIterator::WordAwareIterator(const Position& start, const Position& end)
WordAwareIterator::~WordAwareIterator() {}
-// FIXME: Performance could be bad for huge spans next to each other that don't fall on word boundaries.
+// FIXME: Performance could be bad for huge spans next to each other that don't
+// fall on word boundaries.
void WordAwareIterator::advance() {
m_buffer.clear();
@@ -62,11 +64,13 @@ void WordAwareIterator::advance() {
m_textIterator.characterAt(m_textIterator.length() - 1)))
return;
- // If this is the first chunk that failed, save it in m_buffer before look ahead.
+ // If this is the first chunk that failed, save it in m_buffer before look
+ // ahead.
if (m_buffer.isEmpty())
m_textIterator.copyTextTo(&m_buffer);
- // Look ahead to next chunk. If it is whitespace or a break, we can use the previous stuff
+ // Look ahead to next chunk. If it is whitespace or a break, we can use the
+ // previous stuff
m_textIterator.advance();
if (m_textIterator.atEnd() || !m_textIterator.length() ||
isSpaceOrNewline(m_textIterator.text().characterAt(0))) {
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698