chromium/third_party/blink/renderer/core/paint/marker_range_mapping_context.h

// Copyright 2023 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_PAINT_MARKER_RANGE_MAPPING_CONTEXT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_MARKER_RANGE_MAPPING_CONTEXT_H_

#include "third_party/blink/renderer/core/layout/inline/fragment_item.h"
#include "third_party/blink/renderer/core/layout/inline/offset_mapping.h"
#include "third_party/blink/renderer/core/layout/inline/text_offset_range.h"

namespace blink {

class DocumentMarker;

// Helper for mapping from DOM offset (range) to text content offset.
//
// Exploits the fact that DocumentMarkers are sorted in DOM offset order, to
// maintain a cached starting point within the unit mapping range and thus
// amortize the cost of unit lookup.
class CORE_EXPORT MarkerRangeMappingContext {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_MARKER_RANGE_MAPPING_CONTEXT_H_