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 f829b23d16491acd693a0ed518392890692649f6..a8f9a47f46f1f74b34853cbac8d7613dc7d8f7d1 100644 |
--- a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp |
+++ b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp |
@@ -414,7 +414,7 @@ tryAgain: |
return matchLength; |
} |
-static const TextIteratorBehaviorFlags iteratorFlagsForFindPlainText = TextIteratorEntersTextControls | TextIteratorEntersOpenShadowRoots | TextIteratorDoesNotBreakAtReplacedElement; |
+static const TextIteratorBehaviorFlags iteratorFlagsForFindPlainText = TextIteratorEntersTextControls | TextIteratorEntersOpenShadowRoots | TextIteratorDoesNotBreakAtReplacedElement | TextIteratorCollapseTrailingSpace; |
template <typename Strategy> |
static EphemeralRangeTemplate<Strategy> findPlainTextAlgorithm(const EphemeralRangeTemplate<Strategy>& inputRange, const String& target, FindOptions options) |