blob: b4bdc5821811cbb8d59e271b779e5be6b2af44f3 [file] [log] [blame]
// Copyright 2020 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 "third_party/blink/renderer/core/layout/ng/grid/layout_ng_grid.h"
#include "third_party/blink/renderer/core/layout/ng/ng_layout_result.h"
namespace blink {
LayoutNGGrid::LayoutNGGrid(Element* element)
: LayoutNGMixin<LayoutBlock>(element) {}
void LayoutNGGrid::UpdateBlockLayout(bool relayout_children) {
if (IsOutOfFlowPositioned()) {
UpdateOutOfFlowBlockLayout();
return;
}
UpdateInFlowBlockLayout();
}
} // namespace blink