| Index: third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp | 
| diff --git a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp | 
| index 11ee7e096e9eb7a9c8bc6a28c2e87b1bc1d4f6c2..8f16b63c74f22c9bb4bd7ca4b48d0e097f4521fa 100644 | 
| --- a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp | 
| +++ b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp | 
| @@ -389,7 +389,10 @@ static size_t findPlainTextInternal(CharacterIteratorAlgorithm<Strategy>& it, co | 
| } | 
|  | 
| while (!it.atEnd()) { | 
| -        it.appendTextTo(buffer); | 
| +        // TODO(xiaochengh): Should allow copying text to SearchBuffer directly | 
| +        ForwardsTextBuffer characters; | 
| +        it.copyTextTo(&characters); | 
| +        buffer.append(characters.data(), characters.size()); | 
| it.advance(buffer.numberOfCharactersJustAppended()); | 
| tryAgain: | 
| size_t matchStartOffset; | 
|  |