chromium/third_party/blink/renderer/core/layout/page_border_box_layout_algorithm.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_PAGE_BORDER_BOX_LAYOUT_ALGORITHM_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_PAGE_BORDER_BOX_LAYOUT_ALGORITHM_H_

#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/layout/box_fragment_builder.h"
#include "third_party/blink/renderer/core/layout/layout_algorithm.h"

namespace blink {

class BlockBreakToken;
class BlockNode;
class ConstraintSpace;

struct PageAreaLayoutParams {};

// Algorithm that generates a fragment for the border box of a page. Creates a
// page area child (which is a fragmentainer), where the actual fragmented
// document contents will be placed.
//
// See https://drafts.csswg.org/css-page-3/#page-model
//
// The page border box is the innermost part of what the spec refers to as "page
// box". The outermost part is the page container, which is the parent of a page
// border box.
class CORE_EXPORT PageBorderBoxLayoutAlgorithm
    : public LayoutAlgorithm<BlockNode, BoxFragmentBuilder, BlockBreakToken> {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_PAGE_BORDER_BOX_LAYOUT_ALGORITHM_H_