Index: Source/core/dom/DocumentMarker.h |
diff --git a/Source/core/dom/DocumentMarker.h b/Source/core/dom/DocumentMarker.h |
index b6072b9701c76607f4cd735443d80bbe8d2538b9..48db6e48283e92f0695ae8dd44544649504efb0a 100644 |
--- a/Source/core/dom/DocumentMarker.h |
+++ b/Source/core/dom/DocumentMarker.h |
@@ -38,10 +38,17 @@ class DocumentMarkerDetails; |
// for all types other than type TextMatch. |
class DocumentMarker { |
public: |
+ enum MarkerTypeIndex { |
+ SpellingMarkerIndex, |
groby-ooo-7-16
2013/09/19 18:17:09
Personal nit: I prefer a "= 0" after the first enu
pstanek
2013/09/21 21:10:51
Done.
|
+ GramarMarkerIndex, |
+ TextMatchMarkerIndex, |
+ MarkerTypeIndexesCount |
+ }; |
+ |
enum MarkerType { |
- Spelling = 1 << 0, |
- Grammar = 1 << 1, |
- TextMatch = 1 << 2 |
+ Spelling = 1 << SpellingMarkerIndex, |
+ Grammar = 1 << GramarMarkerIndex, |
+ TextMatch = 1 << TextMatchMarkerIndex |
}; |
class MarkerTypes { |