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

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

Issue 2480493002: [css-grid] Use min|max-sizes to compute flex fraction (Closed)
Patch Set: Patch for landing Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; 117 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const;
118 118
119 class GridIterator; 119 class GridIterator;
120 struct GridSizingData; 120 struct GridSizingData;
121 enum SizingOperation { TrackSizing, IntrinsicSizeComputation }; 121 enum SizingOperation { TrackSizing, IntrinsicSizeComputation };
122 void computeUsedBreadthOfGridTracks( 122 void computeUsedBreadthOfGridTracks(
123 GridTrackSizingDirection, 123 GridTrackSizingDirection,
124 GridSizingData&, 124 GridSizingData&,
125 LayoutUnit& baseSizesWithoutMaximization, 125 LayoutUnit& baseSizesWithoutMaximization,
126 LayoutUnit& growthLimitsWithoutMaximization) const; 126 LayoutUnit& growthLimitsWithoutMaximization) const;
127 void computeFlexSizedTracksGrowth(
128 GridTrackSizingDirection,
129 Vector<GridTrack>&,
130 const Vector<size_t>& flexibleSizedTracksIndex,
131 double flexFraction,
132 Vector<LayoutUnit>& increments,
133 LayoutUnit& totalGrowth) const;
127 LayoutUnit computeUsedBreadthOfMinLength(const GridTrackSize&, 134 LayoutUnit computeUsedBreadthOfMinLength(const GridTrackSize&,
128 LayoutUnit maxBreadth) const; 135 LayoutUnit maxBreadth) const;
129 LayoutUnit computeUsedBreadthOfMaxLength(const GridTrackSize&, 136 LayoutUnit computeUsedBreadthOfMaxLength(const GridTrackSize&,
130 LayoutUnit usedBreadth, 137 LayoutUnit usedBreadth,
131 LayoutUnit maxBreadth) const; 138 LayoutUnit maxBreadth) const;
132 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, 139 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection,
133 GridSizingData&) const; 140 GridSizingData&) const;
134 141
135 void ensureGridSize(size_t maximumRowSize, size_t maximumColumnSize); 142 void ensureGridSize(size_t maximumRowSize, size_t maximumColumnSize);
136 void insertItemIntoGrid(LayoutBox&, const GridArea&); 143 void insertItemIntoGrid(LayoutBox&, const GridArea&);
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr}; 371 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows{nullptr};
365 372
366 Optional<bool> m_hasDefiniteLogicalHeight; 373 Optional<bool> m_hasDefiniteLogicalHeight;
367 }; 374 };
368 375
369 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 376 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
370 377
371 } // namespace blink 378 } // namespace blink
372 379
373 #endif // LayoutGrid_h 380 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698