chromium/third_party/blink/renderer/core/dom/text_diff_range.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_DOM_TEXT_DIFF_RANGE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_DOM_TEXT_DIFF_RANGE_H_

#include "base/dcheck_is_on.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/wtf_size_t.h"

namespace WTF {
class String;
}  // namespace WTF

namespace blink {

//
// This represents where in a text is changed how.
//
struct TextDiffRange {};

#if !EXPENSIVE_DCHECKS_ARE_ON()
inline void TextDiffRange::CheckValid(const WTF::String& old_text,
                                      const WTF::String& new_text) const {}
#endif  // EXPENSIVE_DCHECKS_ARE_ON()

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_DOM_TEXT_DIFF_RANGE_H_