Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 2414263002: Audit the use of updateStyleAndLayoutIgnorePendingStylesheets in toNormalizedEphemeralRange (Closed)
Patch Set: fix nit Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698