| Index: third_party/WebKit/Source/core/editing/SurroundingText.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/SurroundingText.cpp b/third_party/WebKit/Source/core/editing/SurroundingText.cpp
|
| index 40a0ace8b6efb2942aba1b692e31f0ea519d4721..320f7e36b8e61cec56b346d78fb7d9417b19a618 100644
|
| --- a/third_party/WebKit/Source/core/editing/SurroundingText.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SurroundingText.cpp
|
| @@ -66,8 +66,9 @@ void SurroundingText::initialize(const Position& startPosition,
|
| // end. It will then be updated to only contain the text in the text in the
|
| // right range around the selection.
|
| CharacterIterator forwardIterator(
|
| - endPosition, Position::lastPositionInNode(document->documentElement())
|
| - .parentAnchoredEquivalent(),
|
| + endPosition,
|
| + Position::lastPositionInNode(document->documentElement())
|
| + .parentAnchoredEquivalent(),
|
| TextIteratorBehavior::Builder().setStopsOnFormControls(true).build());
|
| // FIXME: why do we stop going trough the text if we were not able to select
|
| // something on the right?
|
|
|