blob: 3e1b38f2f9f8cb826c84f07b8f64e94709c4d53c [file] [log] [blame]
// Copyright 2017 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/inline/ng_physical_line_box_fragment.h"
namespace blink {
NGPhysicalLineBoxFragment::NGPhysicalLineBoxFragment(
NGPhysicalSize size,
Vector<RefPtr<NGPhysicalFragment>>& children,
const NGLineHeightMetrics& metrics,
RefPtr<NGBreakToken> break_token)
: NGPhysicalFragment(nullptr,
size,
kFragmentLineBox,
std::move(break_token)),
metrics_(metrics) {
children_.swap(children);
}
} // namespace blink