| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 void computeTrackSizesForDefiniteSize(GridTrackSizingDirection, | 169 void computeTrackSizesForDefiniteSize(GridTrackSizingDirection, |
| 170 GridSizingData&, | 170 GridSizingData&, |
| 171 LayoutUnit freeSpace) const; | 171 LayoutUnit freeSpace) const; |
| 172 | 172 |
| 173 void repeatTracksSizingIfNeeded(GridSizingData&, | 173 void repeatTracksSizingIfNeeded(GridSizingData&, |
| 174 LayoutUnit availableSpaceForColumns, | 174 LayoutUnit availableSpaceForColumns, |
| 175 LayoutUnit availableSpaceForRows); | 175 LayoutUnit availableSpaceForRows); |
| 176 | 176 |
| 177 void layoutGridItems(GridSizingData&); | 177 void layoutGridItems(GridSizingData&); |
| 178 void prepareChildForPositionedLayout(LayoutBox&); | 178 void prepareChildForPositionedLayout(LayoutBox&); |
| 179 void layoutPositionedObjects(bool relayoutChildren, | 179 void layoutPositionedObjects( |
| 180 PositionedLayoutBehavior = DefaultLayout); | 180 bool relayoutChildren, |
| 181 PositionedLayoutBehavior = DefaultLayout) override; |
| 181 void offsetAndBreadthForPositionedChild(const LayoutBox&, | 182 void offsetAndBreadthForPositionedChild(const LayoutBox&, |
| 182 GridTrackSizingDirection, | 183 GridTrackSizingDirection, |
| 183 LayoutUnit& offset, | 184 LayoutUnit& offset, |
| 184 LayoutUnit& breadth); | 185 LayoutUnit& breadth); |
| 185 void populateGridPositionsForDirection(GridSizingData&, | 186 void populateGridPositionsForDirection(GridSizingData&, |
| 186 GridTrackSizingDirection); | 187 GridTrackSizingDirection); |
| 187 | 188 |
| 188 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange; | 189 typedef struct GridItemsSpanGroupRange GridItemsSpanGroupRange; |
| 189 LayoutUnit currentItemSizeForTrackSizeComputationPhase( | 190 LayoutUnit currentItemSizeForTrackSizeComputationPhase( |
| 190 TrackSizeComputationPhase, | 191 TrackSizeComputationPhase, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; | 365 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; |
| 365 | 366 |
| 366 Optional<bool> m_hasDefiniteLogicalHeight; | 367 Optional<bool> m_hasDefiniteLogicalHeight; |
| 367 }; | 368 }; |
| 368 | 369 |
| 369 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 370 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 370 | 371 |
| 371 } // namespace blink | 372 } // namespace blink |
| 372 | 373 |
| 373 #endif // LayoutGrid_h | 374 #endif // LayoutGrid_h |
| OLD | NEW |