chromium/third_party/blink/renderer/core/layout/inline/fragment_item.h

// Copyright 2019 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_LAYOUT_INLINE_FRAGMENT_ITEM_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_INLINE_FRAGMENT_ITEM_H_

#include "base/check_op.h"
#include "base/gtest_prod_util.h"
#include "base/notreached.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/layout/geometry/logical_offset.h"
#include "third_party/blink/renderer/core/layout/ink_overflow.h"
#include "third_party/blink/renderer/core/layout/inline/inline_break_token.h"
#include "third_party/blink/renderer/core/layout/inline/physical_line_box_fragment.h"
#include "third_party/blink/renderer/core/layout/inline/text_item_type.h"
#include "third_party/blink/renderer/core/layout/inline/text_offset_range.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_view.h"
#include "third_party/blink/renderer/platform/graphics/paint/display_item_client.h"
#include "third_party/blink/renderer/platform/transforms/affine_transform.h"
#include "third_party/blink/renderer/platform/wtf/ref_counted.h"

namespace blink {

class FragmentItems;
class InlinePaintContext;
class PhysicalBoxFragment;
struct LogicalLineItem;
struct TextFragmentPaintInfo;

// Data for SVG text in addition to FragmentItem.
struct SvgFragmentData : public GarbageCollected<SvgFragmentData> {};

// This class represents a text run or a box in an inline formatting context.
//
// This class consumes less memory than a full fragment, and can be stored in a
// flat list (FragmentItems) for easier and faster traversal.
class CORE_EXPORT FragmentItem final {};

inline bool FragmentItem::CanReuse() const {}

CORE_EXPORT std::ostream& operator<<(std::ostream&, const FragmentItem*);
CORE_EXPORT std::ostream& operator<<(std::ostream&, const FragmentItem&);

}  // namespace blink

namespace WTF {
template <>
struct VectorTraits<blink::FragmentItem>
    : VectorTraitsBase<blink::FragmentItem> {};
}  // namespace WTF

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_INLINE_FRAGMENT_ITEM_H_