Commit 964b9c2f authored by Koji Ishii's avatar Koji Ishii Committed by Commit Bot

Remove |LayoutBlockFlow::FragmentItems|

After recent removals of calls to |LayoutBlockFlow::
FragmentItems|, only unsed test code was left. This patch
removes it along with the function itself.

Bug: 1061423
Change-Id: I84edecc0cd742269df04067dec5741c75c0a66c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2507414Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822648}
parent 209ed032
...@@ -2479,13 +2479,6 @@ void LayoutBlockFlow::SetPaintFragment( ...@@ -2479,13 +2479,6 @@ void LayoutBlockFlow::SetPaintFragment(
NOT_DESTROYED(); NOT_DESTROYED();
} }
const NGFragmentItems* LayoutBlockFlow::FragmentItems() const {
NOT_DESTROYED();
if (const NGPhysicalBoxFragment* box_fragment = CurrentFragment())
return box_fragment->Items();
return nullptr;
}
void LayoutBlockFlow::ComputeVisualOverflow(bool recompute_floats) { void LayoutBlockFlow::ComputeVisualOverflow(bool recompute_floats) {
NOT_DESTROYED(); NOT_DESTROYED();
DCHECK(!SelfNeedsLayout()); DCHECK(!SelfNeedsLayout());
......
...@@ -59,7 +59,6 @@ class LayoutMultiColumnSpannerPlaceholder; ...@@ -59,7 +59,6 @@ class LayoutMultiColumnSpannerPlaceholder;
class LayoutRubyRun; class LayoutRubyRun;
class MarginInfo; class MarginInfo;
class NGBlockBreakToken; class NGBlockBreakToken;
class NGFragmentItems;
class NGOffsetMapping; class NGOffsetMapping;
class NGPhysicalContainerFragment; class NGPhysicalContainerFragment;
class NGPhysicalFragment; class NGPhysicalFragment;
...@@ -527,7 +526,6 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock { ...@@ -527,7 +526,6 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
virtual void WillCollectInlines() { NOT_DESTROYED(); } virtual void WillCollectInlines() { NOT_DESTROYED(); }
virtual void SetPaintFragment(const NGBlockBreakToken*, virtual void SetPaintFragment(const NGBlockBreakToken*,
scoped_refptr<const NGPhysicalFragment>); scoped_refptr<const NGPhysicalFragment>);
const NGFragmentItems* FragmentItems() const;
#if DCHECK_IS_ON() #if DCHECK_IS_ON()
void ShowLineTreeAndMark(const InlineBox* = nullptr, void ShowLineTreeAndMark(const InlineBox* = nullptr,
......
...@@ -34,12 +34,6 @@ class NGFragmentItemTest : public NGLayoutTest, ...@@ -34,12 +34,6 @@ class NGFragmentItemTest : public NGLayoutTest,
return To<LayoutBlockFlow>(GetLayoutObjectByElementId(id)); return To<LayoutBlockFlow>(GetLayoutObjectByElementId(id));
} }
const NGFragmentItems* GetFragmentItemsByElementId(const char* id) {
const auto* block_flow =
To<LayoutBlockFlow>(GetLayoutObjectByElementId("container"));
return block_flow->FragmentItems();
}
Vector<NGInlineCursorPosition> GetLines(NGInlineCursor* cursor) { Vector<NGInlineCursorPosition> GetLines(NGInlineCursor* cursor) {
Vector<NGInlineCursorPosition> lines; Vector<NGInlineCursorPosition> lines;
for (cursor->MoveToFirstLine(); *cursor; cursor->MoveToNextLine()) for (cursor->MoveToFirstLine(); *cursor; cursor->MoveToNextLine())
......
...@@ -20,6 +20,7 @@ class NGBlockBreakToken; ...@@ -20,6 +20,7 @@ class NGBlockBreakToken;
class NGBoxFragmentBuilder; class NGBoxFragmentBuilder;
class NGConstraintSpace; class NGConstraintSpace;
class NGEarlyBreak; class NGEarlyBreak;
class NGFragmentItems;
class NGLayoutResult; class NGLayoutResult;
class NGPhysicalBoxFragment; class NGPhysicalBoxFragment;
class NGPhysicalContainerFragment; class NGPhysicalContainerFragment;
......
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