blob: 1bfd897020c234bd15f3203d2be1b2677a6276bf [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/layout/ng/ng_layout_result.h"
namespace blink {
NGLayoutResult::NGLayoutResult(
PassRefPtr<NGPhysicalFragment> physical_fragment,
Vector<NGOutOfFlowPositionedDescendant> oof_positioned_descendants,
Vector<RefPtr<NGUnpositionedFloat>>& unpositioned_floats,
const WTF::Optional<NGLogicalOffset> bfc_offset,
const NGMarginStrut end_margin_strut,
NGLayoutResultStatus status)
: physical_fragment_(std::move(physical_fragment)),
bfc_offset_(bfc_offset),
end_margin_strut_(end_margin_strut),
status_(status) {
unpositioned_floats_.swap(unpositioned_floats);
oof_positioned_descendants_.swap(oof_positioned_descendants);
}
} // namespace blink