| Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| index 0579f117a4fef2ab0c5681d0ce6bb25e805189b8..56d0fad1e665d019a98e43b8fa0610599e88193c 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| @@ -15,8 +15,8 @@
|
|
|
| NGBlockLayoutAlgorithm::NGBlockLayoutAlgorithm(
|
| PassRefPtr<const ComputedStyle> style,
|
| - NGBoxIterator boxIterator)
|
| - : m_style(style), m_boxIterator(boxIterator) {}
|
| + NGBox firstChild)
|
| + : m_style(style), m_firstChild(firstChild) {}
|
|
|
| NGFragment* NGBlockLayoutAlgorithm::layout(
|
| const NGConstraintSpace& constraintSpace) {
|
| @@ -24,8 +24,9 @@
|
| computeInlineSizeForFragment(constraintSpace, *m_style);
|
|
|
| HeapVector<Member<const NGFragmentBase>> childFragments;
|
| +
|
| LayoutUnit contentSize;
|
| - for (NGBox curr = m_boxIterator.first(); curr; m_boxIterator.next()) {
|
| + for (NGBox curr = m_firstChild; curr; curr.nextSibling()) {
|
| NGFragment* fragment = curr.layout(constraintSpace);
|
| // TODO(layout-ng): Take margins into account
|
| fragment->setOffset(LayoutUnit(), contentSize);
|
|
|