| OLD | NEW | 
| (Empty) |  | 
 |   1 // Copyright 2017 The Chromium Authors. All rights reserved. | 
 |   2 // Use of this source code is governed by a BSD-style license that can be | 
 |   3 // found in the LICENSE file. | 
 |   4  | 
 |   5 #include "core/editing/markers/SpellCheckMarker.h" | 
 |   6  | 
 |   7 namespace blink { | 
 |   8  | 
 |   9 SpellCheckMarker::SpellCheckMarker(DocumentMarker::MarkerType type, | 
 |  10                                    unsigned startOffset, | 
 |  11                                    unsigned endOffset, | 
 |  12                                    const String& description) | 
 |  13     : DocumentMarker(startOffset, endOffset), | 
 |  14       m_type(type), | 
 |  15       m_description(description) { | 
 |  16   DCHECK(type == DocumentMarker::Spelling || type == DocumentMarker::Grammar); | 
 |  17 } | 
 |  18  | 
 |  19 SpellCheckMarker* SpellCheckMarker::clone() const { | 
 |  20   return new SpellCheckMarker(*this); | 
 |  21 } | 
 |  22  | 
 |  23 DocumentMarker::MarkerType SpellCheckMarker::type() const { | 
 |  24   return m_type; | 
 |  25 } | 
 |  26  | 
 |  27 const String& SpellCheckMarker::description() const { | 
 |  28   return m_description; | 
 |  29 } | 
 |  30  | 
 |  31 }  // namespace blink | 
| OLD | NEW |