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

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

Issue 1651263003: Detemplatize TextIterator::copyTextTo with ForwardsTextBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@text_buffers
Patch Set: Change ref parameters to ptrs Created 4 years, 11 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
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 804840a29aab6c5643ffb0045b85b9df5c49c16a..c2c9ed9535122fc0aafe3623ec7f887b0312e3e0 100644
--- a/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp
@@ -66,7 +66,7 @@ void WordAwareIterator::advance()
// 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);
+ m_textIterator.copyTextTo(&m_buffer);
// Look ahead to next chunk. If it is whitespace or a break, we can use the previous stuff
m_textIterator.advance();
@@ -76,7 +76,7 @@ void WordAwareIterator::advance()
}
// Start gobbling chunks until we get to a suitable stopping point
- m_textIterator.copyTextTo(m_buffer);
+ m_textIterator.copyTextTo(&m_buffer);
}
}

Powered by Google App Engine
This is Rietveld 408576698