Commit af554460 authored by Koji Ishii's avatar Koji Ishii Committed by Commit Bot

Use NGFragmentItems::Span everywhere

This patch uses |NGFragmentItems::Span| instead of
defining it in multiple places.

This is to prepare for changing it to a vector of
|NGFragmentItem|.

This patch has no behavior changes.

Bug: 982194
Change-Id: Ic0b929603bb4c031c93851fa6238cbb2f43a521a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2206526
Auto-Submit: Koji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770046}
parent e9d16408
......@@ -10,6 +10,7 @@
#include "base/containers/span.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/editing/forward.h"
#include "third_party/blink/renderer/core/layout/ng/inline/ng_fragment_items.h"
#include "third_party/blink/renderer/core/layout/ng/inline/ng_text_offset.h"
#include "third_party/blink/renderer/platform/text/text_direction.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
......@@ -43,7 +44,7 @@ struct PhysicalSize;
// is faster than moving to |NGFragmentItem|.
class CORE_EXPORT NGInlineCursorPosition {
public:
using ItemsSpan = base::span<const scoped_refptr<const NGFragmentItem>>;
using ItemsSpan = NGFragmentItems::Span;
const NGPaintFragment* PaintFragment() const { return paint_fragment_; }
const NGFragmentItem* Item() const { return item_; }
......@@ -203,7 +204,7 @@ class CORE_EXPORT NGInlineCursor {
STACK_ALLOCATED();
public:
using ItemsSpan = base::span<const scoped_refptr<const NGFragmentItem>>;
using ItemsSpan = NGFragmentItems::Span;
explicit NGInlineCursor(const LayoutBlockFlow& block_flow);
explicit NGInlineCursor(const NGFragmentItems& items);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment