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

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

Issue 319593002: [CSS Grid Layout] RenderGrid::growGrid refactoring (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class GridIterator; 70 class GridIterator;
71 struct GridSizingData; 71 struct GridSizingData;
72 bool gridElementIsShrinkToFit(); 72 bool gridElementIsShrinkToFit();
73 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &); 73 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &);
74 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& availableLogicalSpace); 74 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& availableLogicalSpace);
75 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri dLength&) const; 75 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri dLength&) const;
76 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri dLength&, LayoutUnit usedBreadth) const; 76 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri dLength&, LayoutUnit usedBreadth) const;
77 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con st Length&) const; 77 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con st Length&) const;
78 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&, LayoutUnit& availableLogicalSpace); 78 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&, LayoutUnit& availableLogicalSpace);
79 79
80 void growGrid(GridTrackSizingDirection, size_t maximumPosition); 80 void ensureGridSize(size_t maximumRowIndex, size_t maximumColumnIndex);
81 void insertItemIntoGrid(RenderBox*, const GridCoordinate&); 81 void insertItemIntoGrid(RenderBox*, const GridCoordinate&);
82 void placeItemsOnGrid(); 82 void placeItemsOnGrid();
83 void populateExplicitGridAndOrderIterator(); 83 void populateExplicitGridAndOrderIterator();
84 bool checkEmptyCells(const GridCoordinate&) const; 84 bool checkEmptyCells(const GridCoordinate&) const;
85 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri d(const RenderBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions ) const; 85 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri d(const RenderBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions ) const;
86 PassOwnPtr<GridCoordinate> findEmptyGridAreaAtSpecifiedPositionsInsideGrid(c onst RenderBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions) c onst; 86 PassOwnPtr<GridCoordinate> findEmptyGridAreaAtSpecifiedPositionsInsideGrid(c onst RenderBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions) c onst;
87 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<RenderBox*>&); 87 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<RenderBox*>&);
88 void placeAutoMajorAxisItemsOnGrid(const Vector<RenderBox*>&); 88 void placeAutoMajorAxisItemsOnGrid(const Vector<RenderBox*>&);
89 void placeAutoMajorAxisItemOnGrid(RenderBox*); 89 void placeAutoMajorAxisItemOnGrid(RenderBox*);
90 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; 90 GridTrackSizingDirection autoPlacementMajorAxisDirection() const;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 OrderIterator m_orderIterator; 148 OrderIterator m_orderIterator;
149 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 149 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
150 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; 150 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap;
151 }; 151 };
152 152
153 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 153 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
154 154
155 } // namespace WebCore 155 } // namespace WebCore
156 156
157 #endif // RenderGrid_h 157 #endif // RenderGrid_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698