blob: c70b9700b32fef4000d0b89f7a6e71c7aac7d901 [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,
PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>&
out_of_flow_descendants,
Vector<NGStaticPosition> out_of_flow_positions,
Vector<RefPtr<NGFloatingObject>>& unpositioned_floats)
: physical_fragment_(physical_fragment),
layout_object_(nullptr),
out_of_flow_descendants_(out_of_flow_descendants),
out_of_flow_positions_(out_of_flow_positions) {
unpositioned_floats_.swap(unpositioned_floats);
}
} // namespace blink