blob: 6146b2fdba5dec1b1b4d057f46950f8ba50448ae [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_physical_box_fragment.h"
#include "core/layout/ng/ng_unpositioned_float.h"
namespace blink {
NGPhysicalBoxFragment::NGPhysicalBoxFragment(
LayoutObject* layout_object,
NGPhysicalSize size,
NGPhysicalSize overflow,
Vector<RefPtr<NGPhysicalFragment>>& children,
Vector<NGPositionedFloat>& positioned_floats,
unsigned border_edges, // NGBorderEdges::Physical
RefPtr<NGBreakToken> break_token)
: NGPhysicalFragment(layout_object,
size,
kFragmentBox,
std::move(break_token)),
overflow_(overflow),
positioned_floats_(positioned_floats) {
children_.swap(children);
border_edge_ = border_edges;
}
} // namespace blink