#include "third_party/blink/renderer/core/layout/paginated_root_layout_algorithm.h"
#include <algorithm>
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/pagination_state.h"
#include "third_party/blink/renderer/core/layout/constraint_space_builder.h"
#include "third_party/blink/renderer/core/layout/geometry/writing_mode_converter.h"
#include "third_party/blink/renderer/core/layout/out_of_flow_layout_part.h"
#include "third_party/blink/renderer/core/layout/page_border_box_layout_algorithm.h"
#include "third_party/blink/renderer/core/layout/page_container_layout_algorithm.h"
#include "third_party/blink/renderer/core/layout/pagination_utils.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
namespace blink {
PaginatedRootLayoutAlgorithm::PaginatedRootLayoutAlgorithm(
const LayoutAlgorithmParams& params)
: … { … }
const LayoutResult* PaginatedRootLayoutAlgorithm::Layout() { … }
const PhysicalBoxFragment& PaginatedRootLayoutAlgorithm::CreateEmptyPage(
const BlockNode& node,
const ConstraintSpace& parent_space,
wtf_size_t page_index,
const PhysicalBoxFragment& previous_fragmentainer,
bool* needs_total_page_count) { … }
PaginatedRootLayoutAlgorithm::PageContainerResult
PaginatedRootLayoutAlgorithm::LayoutPageContainer(
const BlockNode& root_node,
const ConstraintSpace& parent_space,
wtf_size_t page_index,
wtf_size_t total_page_count,
const AtomicString& page_name,
const PageAreaLayoutParams& page_area_params,
const PhysicalBoxFragment* existing_page_container) { … }
}