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 "third_party/blink/renderer/core/editing/markers/suggestion_marker_replacement_scope.h"
6 
7 namespace blink {
8 
9 bool SuggestionMarkerReplacementScope::currently_in_scope_ = false;
10 
SuggestionMarkerReplacementScope()11 SuggestionMarkerReplacementScope::SuggestionMarkerReplacementScope() {
12   DCHECK(!currently_in_scope_);
13   currently_in_scope_ = true;
14 }
15 
~SuggestionMarkerReplacementScope()16 SuggestionMarkerReplacementScope::~SuggestionMarkerReplacementScope() {
17   currently_in_scope_ = false;
18 }
19 
20 // static
CurrentlyInScope()21 bool SuggestionMarkerReplacementScope::CurrentlyInScope() {
22   return currently_in_scope_;
23 }
24 
25 }  // namespace blink
26