| Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| index 5c5f415d3187d909368a021d2ec52ab3580b5816..cc532e2b9fa07e364b9d039e0fe1fef50ef6be0b 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -518,6 +518,10 @@ static bool executeDeleteWordForward(LocalFrame& frame, Event*, EditorCommandSou
|
|
|
| static bool executeFindString(LocalFrame& frame, Event*, EditorCommandSource, const String& value)
|
| {
|
| + DCHECK(frame.document());
|
| + // 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();
|
| return frame.editor().findString(value, CaseInsensitive | WrapAround);
|
| }
|
|
|
|
|