| OLD | NEW |
| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, | 139 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, |
| 140 GridSizingData&) const; | 140 GridSizingData&) const; |
| 141 | 141 |
| 142 size_t computeAutoRepeatTracksCount(GridTrackSizingDirection, | 142 size_t computeAutoRepeatTracksCount(GridTrackSizingDirection, |
| 143 SizingOperation) const; | 143 SizingOperation) const; |
| 144 | 144 |
| 145 typedef ListHashSet<size_t> OrderedTrackIndexSet; | 145 typedef ListHashSet<size_t> OrderedTrackIndexSet; |
| 146 std::unique_ptr<OrderedTrackIndexSet> computeEmptyTracksForAutoRepeat( | 146 std::unique_ptr<OrderedTrackIndexSet> computeEmptyTracksForAutoRepeat( |
| 147 GridTrackSizingDirection) const; | 147 GridTrackSizingDirection) const; |
| 148 | 148 |
| 149 void placeItemsOnGrid(SizingOperation); | 149 class Grid; |
| 150 void populateExplicitGridAndOrderIterator(); | 150 void placeItemsOnGrid(Grid&, SizingOperation); |
| 151 void populateExplicitGridAndOrderIterator(Grid&) const; |
| 151 std::unique_ptr<GridArea> createEmptyGridAreaAtSpecifiedPositionsOutsideGrid( | 152 std::unique_ptr<GridArea> createEmptyGridAreaAtSpecifiedPositionsOutsideGrid( |
| 152 const LayoutBox&, | 153 const LayoutBox&, |
| 153 GridTrackSizingDirection, | 154 GridTrackSizingDirection, |
| 154 const GridSpan& specifiedPositions) const; | 155 const GridSpan& specifiedPositions) const; |
| 155 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); | 156 void placeSpecifiedMajorAxisItemsOnGrid(Grid&, |
| 156 void placeAutoMajorAxisItemsOnGrid(const Vector<LayoutBox*>&); | 157 const Vector<LayoutBox*>&) const; |
| 158 void placeAutoMajorAxisItemsOnGrid(Grid&, const Vector<LayoutBox*>&) const; |
| 157 void placeAutoMajorAxisItemOnGrid( | 159 void placeAutoMajorAxisItemOnGrid( |
| 160 Grid&, |
| 158 LayoutBox&, | 161 LayoutBox&, |
| 159 std::pair<size_t, size_t>& autoPlacementCursor); | 162 std::pair<size_t, size_t>& autoPlacementCursor) const; |
| 160 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; | 163 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; |
| 161 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; | 164 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; |
| 162 | 165 |
| 163 void computeTrackSizesForIndefiniteSize(GridTrackSizingDirection, | 166 void computeTrackSizesForIndefiniteSize(GridTrackSizingDirection, |
| 164 GridSizingData&, | 167 GridSizingData&, |
| 165 LayoutUnit& minIntrinsicSize, | 168 LayoutUnit& minIntrinsicSize, |
| 166 LayoutUnit& maxIntrinsicSize) const; | 169 LayoutUnit& maxIntrinsicSize) const; |
| 167 LayoutUnit computeTrackBasedLogicalHeight(const GridSizingData&) const; | 170 LayoutUnit computeTrackBasedLogicalHeight(const GridSizingData&) const; |
| 168 void computeTrackSizesForDefiniteSize(GridTrackSizingDirection, | 171 void computeTrackSizesForDefiniteSize(GridTrackSizingDirection, |
| 169 GridSizingData&, | 172 GridSizingData&, |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 LayoutUnit m_maxContentHeight{-1}; | 427 LayoutUnit m_maxContentHeight{-1}; |
| 425 | 428 |
| 426 Optional<bool> m_hasDefiniteLogicalHeight; | 429 Optional<bool> m_hasDefiniteLogicalHeight; |
| 427 }; | 430 }; |
| 428 | 431 |
| 429 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 432 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 430 | 433 |
| 431 } // namespace blink | 434 } // namespace blink |
| 432 | 435 |
| 433 #endif // LayoutGrid_h | 436 #endif // LayoutGrid_h |
| OLD | NEW |