chromium/third_party/blink/renderer/core/layout/frame_set_layout_algorithm.cc

// Copyright 2022 The Chromium Authors
// 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/frame_set_layout_algorithm.h"

#include "third_party/blink/renderer/core/html/html_frame_set_element.h"
#include "third_party/blink/renderer/core/layout/disable_layout_side_effects_scope.h"
#include "third_party/blink/renderer/core/layout/frame_set_layout_data.h"

namespace blink {

namespace {

// This function never produces fractional values.
// LayoutUnit(int) produces fractional values if the argument is greater
// than LayoutUnit::kIntMax or smaller than LayoutUnit::kIntMin.
// FrameSetLayoutAlgorithm always requires integers.
LayoutUnit IntLayoutUnit(double value) {}

// Adjusts proportionally the size with remaining size.
LayoutUnit AdjustSizeToRemainingSize(LayoutUnit current,
                                     LayoutUnit remaining,
                                     int64_t total) {}

}  // namespace

FrameSetLayoutAlgorithm::FrameSetLayoutAlgorithm(
    const LayoutAlgorithmParams& params)
    :{}

const LayoutResult* FrameSetLayoutAlgorithm::Layout() {}

MinMaxSizesResult FrameSetLayoutAlgorithm::ComputeMinMaxSizes(
    const MinMaxSizesFloatInput&) {}

// https://html.spec.whatwg.org/C/#convert-a-list-of-dimensions-to-a-list-of-pixel-values
Vector<LayoutUnit> FrameSetLayoutAlgorithm::LayoutAxis(
    wtf_size_t count,
    const Vector<HTMLDimension>& grid,
    const Vector<int>& deltas,
    LayoutUnit available_length) {}

void FrameSetLayoutAlgorithm::LayoutChildren(
    const FrameSetLayoutData& layout_data) {}

void FrameSetLayoutAlgorithm::LayoutChild(const LayoutInputNode& child,
                                          LogicalSize available_size,
                                          PhysicalOffset position,
                                          PhysicalSize child_size) {}

}  // namespace blink