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

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

Issue 2834473003: [css-grid] Preemptively store intrinsic sizes during layout (Closed)
Patch Set: More tests 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
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 virtual LayoutUnit MinLogicalWidthForChild( 257 virtual LayoutUnit MinLogicalWidthForChild(
258 LayoutBox&, 258 LayoutBox&,
259 Length child_min_size, 259 Length child_min_size,
260 GridTrackSizingDirection) const = 0; 260 GridTrackSizingDirection) const = 0;
261 virtual void LayoutGridItemForMinSizeComputation( 261 virtual void LayoutGridItemForMinSizeComputation(
262 LayoutBox&, 262 LayoutBox&,
263 bool override_size_has_changed) const = 0; 263 bool override_size_has_changed) const = 0;
264 264
265 LayoutUnit LogicalHeightForChild(LayoutBox&) const; 265 LayoutUnit LogicalHeightForChild(LayoutBox&) const;
266 266
267 void SetGridItemNeedsLayout(LayoutBox&) const;
268
269 bool UpdateOverrideContainingBlockContentSizeForChild( 267 bool UpdateOverrideContainingBlockContentSizeForChild(
270 LayoutBox&, 268 LayoutBox&,
271 GridTrackSizingDirection) const; 269 GridTrackSizingDirection) const;
272 LayoutUnit ComputeTrackBasedSize() const; 270 LayoutUnit ComputeTrackBasedSize() const;
273 GridTrackSizingDirection Direction() const { return algorithm_.direction_; } 271 GridTrackSizingDirection Direction() const { return algorithm_.direction_; }
274 double FindFrUnitSize(const GridSpan& tracks_span, 272 double FindFrUnitSize(const GridSpan& tracks_span,
275 LayoutUnit left_over_space) const; 273 LayoutUnit left_over_space) const;
276 void DistributeSpaceToTracks(Vector<GridTrack*>& tracks, 274 void DistributeSpaceToTracks(Vector<GridTrack*>& tracks,
277 LayoutUnit& available_logical_space) const; 275 LayoutUnit& available_logical_space) const;
278 const LayoutGrid* GetLayoutGrid() const { return algorithm_.layout_grid_; } 276 const LayoutGrid* GetLayoutGrid() const { return algorithm_.layout_grid_; }
(...skipping 22 matching lines...) Expand all
301 static GridTrackSizingDirection FlowAwareDirectionForChild( 299 static GridTrackSizingDirection FlowAwareDirectionForChild(
302 const LayoutGrid*, 300 const LayoutGrid*,
303 const LayoutBox& child, 301 const LayoutBox& child,
304 GridTrackSizingDirection); 302 GridTrackSizingDirection);
305 303
306 GridTrackSizingAlgorithm& algorithm_; 304 GridTrackSizingAlgorithm& algorithm_;
307 }; 305 };
308 } 306 }
309 307
310 #endif // GridTrackSizingAlgorithm_h 308 #endif // GridTrackSizingAlgorithm_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698