#include "third_party/blink/renderer/core/layout/grid/layout_grid.h"
#include "third_party/blink/renderer/core/layout/grid/subgrid_min_max_sizes_cache.h"
#include "third_party/blink/renderer/core/layout/layout_result.h"
namespace blink {
LayoutGrid::LayoutGrid(Element* element) : … { … }
void LayoutGrid::Trace(Visitor* visitor) const { … }
void LayoutGrid::AddChild(LayoutObject* new_child, LayoutObject* before_child) { … }
void LayoutGrid::RemoveChild(LayoutObject* child) { … }
namespace {
bool ExplicitGridDidResize(const ComputedStyle& new_style,
const ComputedStyle& old_style) { … }
bool NamedGridLinesDefinitionDidChange(const ComputedStyle& new_style,
const ComputedStyle& old_style) { … }
}
void LayoutGrid::StyleDidChange(StyleDifference diff,
const ComputedStyle* old_style) { … }
bool LayoutGrid::HasCachedPlacementData() const { … }
const GridPlacementData& LayoutGrid::CachedPlacementData() const { … }
void LayoutGrid::SetCachedPlacementData(GridPlacementData&& placement_data) { … }
bool LayoutGrid::HasCachedSubgridMinMaxSizes() const { … }
const MinMaxSizes& LayoutGrid::CachedSubgridMinMaxSizes() const { … }
void LayoutGrid::SetSubgridMinMaxSizesCache(MinMaxSizes&& min_max_sizes,
const GridLayoutData& layout_data) { … }
bool LayoutGrid::ShouldInvalidateSubgridMinMaxSizesCacheFor(
const GridLayoutData& layout_data) const { … }
const GridLayoutData* LayoutGrid::LayoutData() const { … }
wtf_size_t LayoutGrid::AutoRepeatCountForDirection(
GridTrackSizingDirection track_direction) const { … }
wtf_size_t LayoutGrid::ExplicitGridStartForDirection(
GridTrackSizingDirection track_direction) const { … }
wtf_size_t LayoutGrid::ExplicitGridEndForDirection(
GridTrackSizingDirection track_direction) const { … }
LayoutUnit LayoutGrid::GridGap(GridTrackSizingDirection track_direction) const { … }
LayoutUnit LayoutGrid::GridItemOffset(
GridTrackSizingDirection track_direction) const { … }
Vector<LayoutUnit, 1> LayoutGrid::TrackSizesForComputedStyle(
GridTrackSizingDirection track_direction) const { … }
Vector<LayoutUnit> LayoutGrid::RowPositions() const { … }
Vector<LayoutUnit> LayoutGrid::ColumnPositions() const { … }
Vector<LayoutUnit> LayoutGrid::ComputeTrackSizeRepeaterForRange(
const GridLayoutTrackCollection& track_collection,
wtf_size_t range_index) const { … }
Vector<LayoutUnit> LayoutGrid::ComputeExpandedPositions(
GridTrackSizingDirection track_direction) const { … }
}