Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: Source/core/rendering/RenderGrid.h

Issue 196943026: [CSS Grid Layout] Support span in auto-placement algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch after GridResolvedPosition was introduced Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 struct GridSizingData; 70 struct GridSizingData;
71 bool gridElementIsShrinkToFit(); 71 bool gridElementIsShrinkToFit();
72 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &); 72 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &);
73 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& availableLogicalSpace); 73 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& availableLogicalSpace);
74 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri dLength&) const; 74 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri dLength&) const;
75 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri dLength&, LayoutUnit usedBreadth) const; 75 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri dLength&, LayoutUnit usedBreadth) const;
76 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con st Length&) const; 76 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con st Length&) const;
77 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&, LayoutUnit& availableLogicalSpace); 77 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&, LayoutUnit& availableLogicalSpace);
78 78
79 void growGrid(GridTrackSizingDirection, size_t maximumPosition); 79 void growGrid(GridTrackSizingDirection, size_t maximumPosition);
80 void insertItemIntoGrid(RenderBox*, const GridResolvedPosition& rowTrack, co nst GridResolvedPosition& columnTrack);
81 void insertItemIntoGrid(RenderBox*, const GridCoordinate&); 80 void insertItemIntoGrid(RenderBox*, const GridCoordinate&);
82 void placeItemsOnGrid(); 81 void placeItemsOnGrid();
83 void populateExplicitGridAndOrderIterator(); 82 void populateExplicitGridAndOrderIterator();
83 bool checkEmptyCells(const GridCoordinate&) const;
84 PassOwnPtr<GridCoordinate> implicitEmptyGridAreaSpecifiedPositions(const Ren derBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions) const;
85 PassOwnPtr<GridCoordinate> emptyGridAreaSpecifiedPositions(const RenderBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions) const;
86 void insertItemIntoGridGrowingIfNeeded(RenderBox*, const GridCoordinate&, Gr idTrackSizingDirection);
84 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<RenderBox*>&); 87 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<RenderBox*>&);
85 void placeAutoMajorAxisItemsOnGrid(const Vector<RenderBox*>&); 88 void placeAutoMajorAxisItemsOnGrid(const Vector<RenderBox*>&);
86 void placeAutoMajorAxisItemOnGrid(RenderBox*); 89 void placeAutoMajorAxisItemOnGrid(RenderBox*);
87 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; 90 GridTrackSizingDirection autoPlacementMajorAxisDirection() const;
88 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; 91 GridTrackSizingDirection autoPlacementMinorAxisDirection() const;
89 92
90 void layoutGridItems(); 93 void layoutGridItems();
91 void populateGridPositions(const GridSizingData&); 94 void populateGridPositions(const GridSizingData&);
92 95
93 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, GridTrackSizin gDirection, Vector<GridTrack>&); 96 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, GridTrackSizin gDirection, Vector<GridTrack>&);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 149 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
147 150
148 friend class GridCoordinateSorter; 151 friend class GridCoordinateSorter;
149 }; 152 };
150 153
151 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 154 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
152 155
153 } // namespace WebCore 156 } // namespace WebCore
154 157
155 #endif // RenderGrid_h 158 #endif // RenderGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698