chromium/third_party/blink/renderer/core/layout/inline/inline_item.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/inline_item.h"

#include "third_party/blink/renderer/core/layout/layout_inline.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_inline_text.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_buffer.h"
#include "third_party/blink/renderer/platform/wtf/size_assertions.h"

namespace blink {
namespace  // namespace

InlineItem::InlineItem(InlineItemType type,
                       unsigned start,
                       unsigned end,
                       LayoutObject* layout_object)
    :{}

InlineItem::InlineItem(const InlineItem& other,
                       unsigned start,
                       unsigned end,
                       const ShapeResult* shape_result)
    :{}

InlineItem::~InlineItem() = default;

void InlineItem::ComputeBoxProperties() {}

const char* InlineItem::InlineItemTypeToString(InlineItemType val) const {}

void InlineItem::SetSegmentData(const RunSegmenter::RunSegmenterRange& range,
                                HeapVector<InlineItem>* items) {}

// Set bidi level to a list of InlineItem from |index| to the item that ends
// with |end_offset|.
// If |end_offset| is mid of an item, the item is split to ensure each item has
// one bidi level.
// @param items The list of InlineItem.
// @param index The first index of the list to set.
// @param end_offset The exclusive end offset to set.
// @param level The level to set.
// @return The index of the next item.
unsigned InlineItem::SetBidiLevel(HeapVector<InlineItem>& items,
                                  unsigned index,
                                  unsigned end_offset,
                                  UBiDiLevel level) {}

const Font& InlineItem::FontWithSvgScaling() const {}

String InlineItem::ToString() const {}

// Split |items[index]| to 2 items at |offset|.
// All properties other than offsets are copied to the new item and it is
// inserted at |items[index + 1]|.
// @param items The list of InlineItem.
// @param index The index to split.
// @param offset The offset to split at.
void InlineItem::Split(HeapVector<InlineItem>& items,
                       unsigned index,
                       unsigned offset) {}

#if DCHECK_IS_ON()
void InlineItem::CheckTextType(const String& text_content) const {}
#endif

void InlineItem::Trace(Visitor* visitor) const {}

}  // namespace blink