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