chromium/third_party/blink/renderer/core/layout/inline/offset_mapping_builder.cc

// Copyright 2017 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/layout/inline/offset_mapping_builder.h"

#include <utility>
#include "base/containers/adapters.h"
#include "third_party/blink/renderer/core/layout/layout_text.h"
#include "third_party/blink/renderer/core/layout/layout_text_fragment.h"
#include "third_party/blink/renderer/core/layout/inline/offset_mapping.h"

namespace blink {

namespace {

// Returns 0 unless |layout_object| is the remaining text of a node styled with
// ::first-letter, in which case it returns the start offset of the remaining
// text. When ::first-letter is applied to generated content, e.g. ::before,
// remaining part contains text for remaining part only instead of all text.
unsigned GetAssociatedStartOffset(const LayoutObject* layout_object) {}

}  // namespace

OffsetMappingBuilder::OffsetMappingBuilder() = default;

OffsetMappingBuilder::SourceNodeScope::SourceNodeScope(
    OffsetMappingBuilder* builder,
    const LayoutObject* node)
    :{}

OffsetMappingBuilder::SourceNodeScope::~SourceNodeScope() {}

void OffsetMappingBuilder::ReserveCapacity(unsigned capacity) {}

void OffsetMappingBuilder::AppendIdentityMapping(unsigned length) {}

void OffsetMappingBuilder::RevertIdentityMapping1() {}

void OffsetMappingBuilder::AppendCollapsedMapping(unsigned length) {}

void OffsetMappingBuilder::AppendVariableMapping(unsigned dom_length,
                                                 unsigned text_content_length) {}

void OffsetMappingBuilder::CollapseTrailingSpace(unsigned space_offset) {}

void OffsetMappingBuilder::RestoreTrailingCollapsibleSpace(
    const LayoutText& layout_text,
    unsigned offset) {}

bool OffsetMappingBuilder::SetDestinationString(const String& string) {}

OffsetMapping* OffsetMappingBuilder::Build() {}

}  // namespace blink