| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index eaafbdf24dbab7c79646431afacc5346749585ae..6e3219b1147302652007e548b9c9b4bf59bec3bc 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -250,7 +250,7 @@ static void frameContentAsPlainText(size_t maxChars, LocalFrame* frame, StringBu
|
| // the plainText() function in core/editing/TextIterator.h, but we implement the maximum
|
| // size and also copy the results directly into a wstring, avoiding the
|
| // string conversion.
|
| - for (TextIterator it(range.get()); !it.atEnd(); it.advance()) {
|
| + for (TextIterator it(range->startPosition(), range->endPosition()); !it.atEnd(); it.advance()) {
|
| it.appendTextToStringBuilder(output, 0, maxChars - output.length());
|
| if (output.length() >= maxChars)
|
| return; // Filled up the buffer.
|
|
|