summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/DocumentMarker.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/DocumentMarker.h')
-rw-r--r--Source/WebCore/dom/DocumentMarker.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/WebCore/dom/DocumentMarker.h b/Source/WebCore/dom/DocumentMarker.h
index 2be60f8..76b85bb 100644
--- a/Source/WebCore/dom/DocumentMarker.h
+++ b/Source/WebCore/dom/DocumentMarker.h
@@ -37,10 +37,20 @@ struct DocumentMarker {
Spelling = 1 << 0,
Grammar = 1 << 1,
TextMatch = 1 << 2,
+ // Text has been modified by spell correction. On some platforms, this prevents the text
+ // to be autocorrected again.
Replacement = 1 << 3,
+ // Renderer needs to add underline indicating that the text has been modified by spell
+ // correction. Text with Replacement marker doesn't necessarily has CorrectionIndicator
+ // marker. For instance, after some text has been corrected, it will have both Replacement
+ // and CorrectionIndicator. However, if user further modifies such text, we would remove
+ // CorrectionIndicator marker, but retain Replacement marker.
CorrectionIndicator = 1 << 4,
+ // Correction suggestion has been offered, but got rejected by user.
RejectedCorrection = 1 << 5,
- AllMarkers = Spelling | Grammar | TextMatch | Replacement | CorrectionIndicator | RejectedCorrection
+ // On some platforms, this prevents the text to be spellchecked again.
+ SpellCheckingExemption = 1 << 6,
+ AllMarkers = Spelling | Grammar | TextMatch | Replacement | CorrectionIndicator | RejectedCorrection | SpellCheckingExemption
};
MarkerType type;
typedef unsigned MarkerTypes;