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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h

Issue 2833753004: [DMC #1.915] Refactor DocumentMarkerController::RemoveMarkers(const MarkerRemoverPredicate&) (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
index 0ac88eb9bf5a59746efda781a959eabc963d89f0..9e6e4827af35cf037395ee8de6e3897996f7d432 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -42,16 +42,6 @@ namespace blink {
class Node;
class RenderedDocumentMarker;
-class Text;
-
-class MarkerRemoverPredicate final {
- public:
- explicit MarkerRemoverPredicate(const Vector<String>& words);
- bool operator()(const DocumentMarker&, const Text&) const;
-
- private:
- Vector<String> words_;
-};
class CORE_EXPORT DocumentMarkerController final
: public GarbageCollected<DocumentMarkerController>,
@@ -82,7 +72,7 @@ class CORE_EXPORT DocumentMarkerController final
void RemoveMarkersForNode(
Node*,
DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());
- void RemoveMarkers(const MarkerRemoverPredicate& should_remove_marker);
+ void RemoveSpellingMarkersUnderWords(const Vector<String>& words);
void RepaintMarkers(
DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());
// Returns true if markers within a range are found.

Powered by Google App Engine
This is Rietveld 408576698