| 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 <memory> |
| 9 #include "core/layout/LayoutBox.h" | 9 #include "core/layout/LayoutBox.h" |
| 10 #include "core/style/GridPositionsResolver.h" | 10 #include "core/style/GridPositionsResolver.h" |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 virtual void LayoutGridItemForMinSizeComputation( | 255 virtual void LayoutGridItemForMinSizeComputation( |
| 256 LayoutBox&, | 256 LayoutBox&, |
| 257 bool override_size_has_changed) const = 0; | 257 bool override_size_has_changed) const = 0; |
| 258 | 258 |
| 259 LayoutUnit LogicalHeightForChild(LayoutBox&) const; | 259 LayoutUnit LogicalHeightForChild(LayoutBox&) const; |
| 260 | 260 |
| 261 bool UpdateOverrideContainingBlockContentSizeForChild( | 261 bool UpdateOverrideContainingBlockContentSizeForChild( |
| 262 LayoutBox&, | 262 LayoutBox&, |
| 263 GridTrackSizingDirection) const; | 263 GridTrackSizingDirection) const; |
| 264 LayoutUnit ComputeTrackBasedSize() const; | 264 LayoutUnit ComputeTrackBasedSize() const; |
| 265 Optional<LayoutUnit> ExtentForBaselineAlignment(LayoutBox&) const; |
| 266 |
| 265 GridTrackSizingDirection Direction() const { return algorithm_.direction_; } | 267 GridTrackSizingDirection Direction() const { return algorithm_.direction_; } |
| 266 double FindFrUnitSize(const GridSpan& tracks_span, | 268 double FindFrUnitSize(const GridSpan& tracks_span, |
| 267 LayoutUnit left_over_space) const; | 269 LayoutUnit left_over_space) const; |
| 268 void DistributeSpaceToTracks(Vector<GridTrack*>& tracks, | 270 void DistributeSpaceToTracks(Vector<GridTrack*>& tracks, |
| 269 LayoutUnit& available_logical_space) const; | 271 LayoutUnit& available_logical_space) const; |
| 270 const LayoutGrid* GetLayoutGrid() const { return algorithm_.layout_grid_; } | 272 const LayoutGrid* GetLayoutGrid() const { return algorithm_.layout_grid_; } |
| 271 Optional<LayoutUnit> AvailableSpace() const { | 273 Optional<LayoutUnit> AvailableSpace() const { |
| 272 return algorithm_.AvailableSpace(); | 274 return algorithm_.AvailableSpace(); |
| 273 } | 275 } |
| 274 | 276 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 293 static GridTrackSizingDirection FlowAwareDirectionForChild( | 295 static GridTrackSizingDirection FlowAwareDirectionForChild( |
| 294 const LayoutGrid*, | 296 const LayoutGrid*, |
| 295 const LayoutBox& child, | 297 const LayoutBox& child, |
| 296 GridTrackSizingDirection); | 298 GridTrackSizingDirection); |
| 297 | 299 |
| 298 GridTrackSizingAlgorithm& algorithm_; | 300 GridTrackSizingAlgorithm& algorithm_; |
| 299 }; | 301 }; |
| 300 } | 302 } |
| 301 | 303 |
| 302 #endif // GridTrackSizingAlgorithm_h | 304 #endif // GridTrackSizingAlgorithm_h |
| OLD | NEW |