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

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

Issue 2830233002: [DMC #1.914] Rename DocumentMarkerController::RemoveMarkers() to RemoveMarkersForNode() (Closed)
Patch Set: Rebase, remove dep Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d2ae2abb08d67c1e2e59ed9a85f4eae331f700e7..33ac04ff3b1e98b2f0eb10da78c3100425f927ff 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -788,8 +788,10 @@ void SpellChecker::RemoveSpellingAndGrammarMarkers(const HTMLElement& element,
DocumentMarker::MarkerTypes marker_types(DocumentMarker::kSpelling);
marker_types.Add(DocumentMarker::kGrammar);
for (Node& node : NodeTraversal::InclusiveDescendantsOf(element)) {
- if (elements_type == ElementsType::kAll || !HasEditableStyle(node))
- GetFrame().GetDocument()->Markers().RemoveMarkers(&node, marker_types);
+ if (elements_type == ElementsType::kAll || !HasEditableStyle(node)) {
+ GetFrame().GetDocument()->Markers().RemoveMarkersForNode(&node,
+ marker_types);
+ }
}
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698