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

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

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

Powered by Google App Engine
This is Rietveld 408576698