| 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 b78667604cdfe88b1c4cefe335c77913223d2153..fd9db50978e77cf8e789c32193e34b0c1baf16f3 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -973,14 +973,14 @@ bool SpellChecker::selectionStartHasSpellingMarkerFor(int from,
|
|
|
| void SpellChecker::removeMarkers(const VisibleSelection& selection,
|
| DocumentMarker::MarkerTypes markerTypes) {
|
| - const EphemeralRange range = selection.toNormalizedEphemeralRange();
|
| - if (range.isNull())
|
| - return;
|
| -
|
| // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| // needs to be audited. See http://crbug.com/590369 for more details.
|
| frame().document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| + const EphemeralRange& range = selection.toNormalizedEphemeralRange();
|
| + if (range.isNull())
|
| + return;
|
| +
|
| frame().document()->markers().removeMarkers(range, markerTypes);
|
| }
|
|
|
|
|