| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GridTrackSizingAlgorithm_h | 5 #ifndef GridTrackSizingAlgorithm_h |
| 6 #define GridTrackSizingAlgorithm_h | 6 #define GridTrackSizingAlgorithm_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "core/style/GridPositionsResolver.h" | 9 #include "core/style/GridPositionsResolver.h" |
| 9 #include "core/style/GridTrackSize.h" | 10 #include "core/style/GridTrackSize.h" |
| 10 #include "platform/LayoutUnit.h" | 11 #include "platform/LayoutUnit.h" |
| 11 #include "wtf/HashSet.h" | 12 #include "wtf/HashSet.h" |
| 12 #include "wtf/Optional.h" | 13 #include "wtf/Optional.h" |
| 13 #include <memory> | |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 static const int infinity = -1; | 17 static const int infinity = -1; |
| 18 | 18 |
| 19 class Grid; | 19 class Grid; |
| 20 class GridTrackSizingAlgorithmStrategy; | 20 class GridTrackSizingAlgorithmStrategy; |
| 21 class LayoutGrid; | 21 class LayoutGrid; |
| 22 | 22 |
| 23 enum SizingOperation { TrackSizing, IntrinsicSizeComputation }; | 23 enum SizingOperation { TrackSizing, IntrinsicSizeComputation }; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 LayoutUnit leftOverSpace) const; | 261 LayoutUnit leftOverSpace) const; |
| 262 void distributeSpaceToTracks(Vector<GridTrack*>& tracks, | 262 void distributeSpaceToTracks(Vector<GridTrack*>& tracks, |
| 263 LayoutUnit& availableLogicalSpace) const; | 263 LayoutUnit& availableLogicalSpace) const; |
| 264 const LayoutGrid* layoutGrid() const { return m_algorithm.m_layoutGrid; } | 264 const LayoutGrid* layoutGrid() const { return m_algorithm.m_layoutGrid; } |
| 265 | 265 |
| 266 GridTrackSizingAlgorithm& m_algorithm; | 266 GridTrackSizingAlgorithm& m_algorithm; |
| 267 }; | 267 }; |
| 268 } | 268 } |
| 269 | 269 |
| 270 #endif // GridTrackSizingAlgorithm_h | 270 #endif // GridTrackSizingAlgorithm_h |
| OLD | NEW |