| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 76e59de8023c0214119f06ceb15438477e3dae20..ba607a7ce492343a696305685567528f35744ed8 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -1572,6 +1572,7 @@ bool Internals::hasSpellingMarker(Document* document, int from, int length)
|
| if (!document->frame())
|
| return false;
|
|
|
| + document->updateStyleAndLayoutIgnorePendingStylesheets();
|
| return document->frame()->spellChecker().selectionStartHasMarkerFor(DocumentMarker::Spelling, from, length);
|
| }
|
|
|
| @@ -1644,6 +1645,7 @@ bool Internals::hasGrammarMarker(Document* document, int from, int length)
|
| if (!document->frame())
|
| return false;
|
|
|
| + document->updateStyleAndLayoutIgnorePendingStylesheets();
|
| return document->frame()->spellChecker().selectionStartHasMarkerFor(DocumentMarker::Grammar, from, length);
|
| }
|
|
|
|
|