| Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| index a0980bf95495e200242827965456f8678fe99b32..6f78402dab4a45c11b3b3342961a5cdf9ffde25c 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -873,6 +873,10 @@ bool LocalDOMWindow::find(const String& string, bool caseSensitive, bool backwar
|
| if (!isCurrentlyDisplayedInFrame())
|
| return false;
|
|
|
| + // Up-to-date, clean tree is required for finding text in page, since it relies
|
| + // on TextIterator to look over the text.
|
| + frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| // FIXME (13016): Support searchInFrames and showDialog
|
| FindOptions options = (backwards ? Backwards : 0) | (caseSensitive ? 0 : CaseInsensitive) | (wrap ? WrapAround : 0) | (wholeWord ? WholeWord | AtWordStarts : 0);
|
| return frame()->editor().findString(string, options);
|
|
|