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

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

Issue 2698663003: [css-grid] Improve intrinsic size computation with orthogonal flows (Closed)
Patch Set: Patch for landing 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 "core/style/GridPositionsResolver.h" 8 #include "core/style/GridPositionsResolver.h"
9 #include "core/style/GridTrackSize.h" 9 #include "core/style/GridTrackSize.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 virtual LayoutUnit minLogicalWidthForChild( 245 virtual LayoutUnit minLogicalWidthForChild(
246 LayoutBox&, 246 LayoutBox&,
247 Length childMinSize, 247 Length childMinSize,
248 GridTrackSizingDirection) const = 0; 248 GridTrackSizingDirection) const = 0;
249 virtual void layoutGridItemForMinSizeComputation( 249 virtual void layoutGridItemForMinSizeComputation(
250 LayoutBox&, 250 LayoutBox&,
251 bool overrideSizeHasChanged) const = 0; 251 bool overrideSizeHasChanged) const = 0;
252 252
253 LayoutUnit logicalHeightForChild(LayoutBox&) const; 253 LayoutUnit logicalHeightForChild(LayoutBox&) const;
254 254
255 void setGridItemNeedsLayout(LayoutBox&) const;
256
255 bool updateOverrideContainingBlockContentSizeForChild( 257 bool updateOverrideContainingBlockContentSizeForChild(
256 LayoutBox&, 258 LayoutBox&,
257 GridTrackSizingDirection) const; 259 GridTrackSizingDirection) const;
258 LayoutUnit computeTrackBasedSize() const; 260 LayoutUnit computeTrackBasedSize() const;
259 GridTrackSizingDirection direction() const { return m_algorithm.m_direction; } 261 GridTrackSizingDirection direction() const { return m_algorithm.m_direction; }
260 double findFrUnitSize(const GridSpan& tracksSpan, 262 double findFrUnitSize(const GridSpan& tracksSpan,
261 LayoutUnit leftOverSpace) const; 263 LayoutUnit leftOverSpace) const;
262 void distributeSpaceToTracks(Vector<GridTrack*>& tracks, 264 void distributeSpaceToTracks(Vector<GridTrack*>& tracks,
263 LayoutUnit& availableLogicalSpace) const; 265 LayoutUnit& availableLogicalSpace) const;
264 const LayoutGrid* layoutGrid() const { return m_algorithm.m_layoutGrid; } 266 const LayoutGrid* layoutGrid() const { return m_algorithm.m_layoutGrid; }
265 267
266 GridTrackSizingAlgorithm& m_algorithm; 268 GridTrackSizingAlgorithm& m_algorithm;
267 }; 269 };
268 } 270 }
269 271
270 #endif // GridTrackSizingAlgorithm_h 272 #endif // GridTrackSizingAlgorithm_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698