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 f9d370e090bb93bd096353fedefa6cbe7692c1ea..e22ad5a6c11383c807093e182fc6391813aa3f47 100644 |
--- a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp |
+++ b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp |
@@ -434,6 +434,9 @@ static EphemeralRangeTemplate<Strategy> findPlainTextAlgorithm(const EphemeralRa |
TextIteratorBehaviorFlags behavior = iteratorFlagsForFindPlainText; |
if (options & FindAPICall) |
behavior |= TextIteratorForWindowFind; |
+ // TODO(dglazkov): The use of updateLayoutIgnorePendingStylesheets needs to be audited. |
+ // see http://crbug.com/590369 for more details. |
+ inputRange.startPosition().document()->updateLayoutIgnorePendingStylesheets(); |
CharacterIteratorAlgorithm<Strategy> findIterator(inputRange, behavior); |
matchLength = findPlainTextInternal(findIterator, target, options, matchStart); |
if (!matchLength) |