blob: 37e0772945ed58ce90027e8e2f4d2af821c2c28a [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/editing/markers/SuggestionMarkerReplacementScope.h"
namespace blink {
bool SuggestionMarkerReplacementScope::currently_in_scope_ = false;
SuggestionMarkerReplacementScope::SuggestionMarkerReplacementScope() {
DCHECK(!currently_in_scope_);
currently_in_scope_ = true;
}
SuggestionMarkerReplacementScope::~SuggestionMarkerReplacementScope() {
currently_in_scope_ = false;
}
// static
bool SuggestionMarkerReplacementScope::CurrentlyInScope() {
return currently_in_scope_;
}
} // namespace blink