Lines Matching refs:Grammar
250 // If we found neither bad grammar nor a misspelled word, wrap and try again (but don't bother if we started at the beginning of the
283 // We found bad grammar. Since we only searched for bad grammar up to the first misspelled word, the bad grammar
284 // takes precedence and we ignore any potential misspelled word. Select the grammar detail, update the spelling
295 m_frame.document()->markers().addMarker(badGrammarRange.get(), DocumentMarker::Grammar, grammarDetail.userDescription);
297 // We found a misspelling, but not any earlier bad grammar. Select the misspelling, update the spelling panel, and store
388 // Check grammar of entire sentence
398 // grammar checking can only be on if spell checking is also on.
582 badGrammarRange->startContainer()->document().markers().addMarker(badGrammarRange.get(), DocumentMarker::Grammar, detail->userDescription, result->hash);
615 // markMisspellingsAndBadGrammar() is triggered by selection change, in which case we check spelling and grammar, but don't autocorrect misspellings.
708 markerTypes.add(DocumentMarker::Grammar);
730 // Don't check spelling and grammar if the change of selection is triggered by spelling correction itself.
750 m_frame.document()->markers().removeMarkers(sentenceRange.get(), DocumentMarker::Grammar);
758 m_frame.document()->markers().removeMarkers(DocumentMarker::Grammar);