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

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

Issue 2833753004: [DMC #1.915] Refactor DocumentMarkerController::RemoveMarkers(const MarkerRemoverPredicate&) (Closed)
Patch Set: Use const 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 06ca1fd2b07349e9d84343416ad38141d9621705..6594a144f056af5d590a5cfbbc1851f66de1eea2 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>,
@@ -90,7 +80,7 @@ class CORE_EXPORT DocumentMarkerController final
void RemoveMarkers(
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