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); |
+ } |
} |
} |