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

Unified Diff: Source/core/dom/DocumentMarker.h

Issue 23703016: [blink] Use functions for AllMarkers and MisspellingMarkers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | « no previous file | Source/core/dom/DocumentMarkerController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentMarker.h
diff --git a/Source/core/dom/DocumentMarker.h b/Source/core/dom/DocumentMarker.h
index f4410fbdc3f30c0942f2cbed661f7736221a7f9e..476d41b316412ad67c1544e6f90ffc4dcdda1a7a 100644
--- a/Source/core/dom/DocumentMarker.h
+++ b/Source/core/dom/DocumentMarker.h
@@ -60,21 +60,8 @@ public:
unsigned m_mask;
};
- class AllMarkers : public MarkerTypes {
- public:
- AllMarkers()
- : MarkerTypes(Spelling | Grammar | TextMatch)
- {
- }
- };
-
- class MisspellingMarkers : public MarkerTypes {
- public:
- MisspellingMarkers()
- : MarkerTypes(Spelling | Grammar)
- {
- }
- };
+ static MarkerTypes allMarkers() { return MarkerTypes(Spelling | Grammar | TextMatch); }
+ static MarkerTypes misspellingMarkers() { return MarkerTypes(Spelling | Grammar); }
DocumentMarker();
DocumentMarker(MarkerType, unsigned startOffset, unsigned endOffset);
« no previous file with comments | « no previous file | Source/core/dom/DocumentMarkerController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698