chromium/third_party/blink/renderer/core/layout/grid/grid_item.cc

// Copyright 2021 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/grid/grid_item.h"

#include "third_party/blink/renderer/core/layout/grid/grid_placement.h"
#include "third_party/blink/renderer/platform/text/writing_mode_utils.h"

namespace blink {

namespace {

// Given an `item_style` determines the correct `AxisEdge` alignment.
// Additionally will determine:
//  - The behavior of 'auto' via the `auto_behavior` out-parameter.
//  - If the alignment is safe via the `is_overflow_safe` out-parameter.
AxisEdge AxisEdgeFromItemPosition(GridTrackSizingDirection track_direction,
                                  bool has_subgridded_axis,
                                  bool is_replaced,
                                  bool is_out_of_flow,
                                  const ComputedStyle& item_style,
                                  const ComputedStyle& parent_grid_style,
                                  const ComputedStyle& root_grid_style,
                                  AutoSizeBehavior* auto_behavior,
                                  bool* is_overflow_safe) {}

}  // namespace

GridItemData::GridItemData(
    BlockNode item_node,
    const ComputedStyle& parent_grid_style,
    const ComputedStyle& root_grid_style,
    bool parent_must_consider_grid_items_for_column_sizing,
    bool parent_must_consider_grid_items_for_row_sizing)
    :{}

void GridItemData::SetAlignmentFallback(
    GridTrackSizingDirection track_direction,
    bool has_synthesized_baseline) {}

void GridItemData::ComputeSetIndices(
    const GridLayoutTrackCollection& track_collection) {}

void GridItemData::ComputeOutOfFlowItemPlacement(
    const GridLayoutTrackCollection& track_collection,
    const GridPlacementData& placement_data,
    const ComputedStyle& grid_style) {}

GridItems::GridItems(const GridItems& other)
    :{}

void GridItems::Append(GridItems* other) {}

void GridItems::SortByOrderProperty() {}

}  // namespace blink