#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 {
unsigned GetAssociatedStartOffset(const LayoutObject* layout_object) { … }
}
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() { … }
}