Index: third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp |
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp |
index ea5dd9c8d831957baa9ac97ae4eb1c0c842c9fb9..1ccce6f1dcebe0a6819fc2e3bc850de39b7a39e4 100644 |
--- a/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp |
+++ b/third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp |
@@ -236,6 +236,10 @@ TextCheckingHelper::~TextCheckingHelper() |
String TextCheckingHelper::findFirstMisspelling(int& firstMisspellingOffset, bool markAll) |
{ |
+ // TODO(dglazkov): The use of updateLayoutIgnorePendingStylesheets needs to be audited. |
+ // see http://crbug.com/590369 for more details. |
+ m_start.document()->updateLayoutIgnorePendingStylesheets(); |
+ |
WordAwareIterator it(m_start, m_end); |
firstMisspellingOffset = 0; |