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

// 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.

#include "third_party/blink/renderer/core/paint/marker_range_mapping_context.h"

#include "third_party/blink/renderer/core/editing/markers/document_marker.h"
#include "third_party/blink/renderer/core/editing/position.h"

namespace blink {

MarkerRangeMappingContext::DOMToTextContentOffsetMapper::
    DOMToTextContentOffsetMapper(const Text& text_node) {}

base::span<const OffsetMappingUnit>
MarkerRangeMappingContext::DOMToTextContentOffsetMapper::GetMappingUnits(
    const LayoutObject* layout_object) {}

unsigned
MarkerRangeMappingContext::DOMToTextContentOffsetMapper::GetTextContentOffset(
    unsigned dom_offset) const {}

unsigned MarkerRangeMappingContext::DOMToTextContentOffsetMapper::
    GetTextContentOffsetNoCache(unsigned dom_offset) const {}

// Find the mapping unit for `dom_offset`, starting from `begin`.
base::span<const OffsetMappingUnit>::iterator
MarkerRangeMappingContext::DOMToTextContentOffsetMapper::FindUnit(
    base::span<const OffsetMappingUnit>::iterator begin,
    unsigned dom_offset) const {}

std::optional<TextOffsetRange> MarkerRangeMappingContext::GetTextContentOffsets(
    const DocumentMarker& marker) const {}

}  // namespace blink