Commit ffeae72d authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[LayoutNG] Remove unused parameter in NGBoxFragmentBuilder::AddResult.

Removes the optional inline_container parameter.
There should be no behaviour change.

Change-Id: I55893fd2e8b765cb0cd0e6786843f4d0dbb5ff2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142692Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757974}
parent 81a29e36
......@@ -176,8 +176,7 @@ void NGBoxFragmentBuilder::AddBreakBeforeChild(
}
void NGBoxFragmentBuilder::AddResult(const NGLayoutResult& child_layout_result,
const LogicalOffset offset,
const LayoutInline* inline_container) {
const LogicalOffset offset) {
const auto& fragment = child_layout_result.PhysicalFragment();
if (items_builder_) {
if (const NGPhysicalLineBoxFragment* line =
......@@ -187,7 +186,7 @@ void NGBoxFragmentBuilder::AddResult(const NGLayoutResult& child_layout_result,
// maybe OOF objects. Investigate how to handle them.
}
}
AddChild(fragment, offset, inline_container);
AddChild(fragment, offset);
if (fragment.IsBox())
PropagateBreak(child_layout_result);
}
......
......@@ -106,9 +106,7 @@ class CORE_EXPORT NGBoxFragmentBuilder final
// Add a layout result. This involves appending the fragment and its relative
// offset to the builder, but also keeping track of out-of-flow positioned
// descendants, propagating fragmentainer breaks, and more.
void AddResult(const NGLayoutResult&,
const LogicalOffset,
const LayoutInline* = nullptr);
void AddResult(const NGLayoutResult&, const LogicalOffset);
void AddBreakToken(scoped_refptr<const NGBreakToken>);
......
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