| 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))) {
|
|
|