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

Side by Side Diff: third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.h

Issue 2852283002: [css-grid] Refactor the extent for baseline alignment computation (Closed)
Patch Set: Created 3 years, 7 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 | third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.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 // 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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698