| Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| index 6c24e0529cf044c0eb27bf909f68d4b02c6ce4ac..1b8f6d9ada47c88d0f42ab190f372e416bda5858 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -392,6 +392,12 @@ void SpellChecker::markMisspellingsAfterApplyingCommand(
|
| if (!isSpellCheckingEnabledFor(cmd.endingSelection()))
|
| return;
|
|
|
| + // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + // In the long term we should use idle time spell checker to prevent
|
| + // synchronous layout caused by spell checking (see crbug.com/517298).
|
| + frame().document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| // Use type-based conditioning instead of polymorphism so that all spell
|
| // checking code can be encapsulated in SpellChecker.
|
|
|
|
|