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

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

Issue 2323793002: [css-grid] Allow percentage values for column and row gutters (Closed)
Patch Set: Apply review comments Created 4 years, 3 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 /* 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 bool allowedToStretchChildAlongRowAxis(const LayoutBox& child) const { retur n justifySelfForChild(child).position() == ItemPositionStretch && hasAutoSizeInR owAxis(child) && !hasAutoMarginsInRowAxis(child); } 201 bool allowedToStretchChildAlongRowAxis(const LayoutBox& child) const { retur n justifySelfForChild(child).position() == ItemPositionStretch && hasAutoSizeInR owAxis(child) && !hasAutoMarginsInRowAxis(child); }
202 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const; 202 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const;
203 bool hasAutoMarginsInRowAxis(const LayoutBox&) const; 203 bool hasAutoMarginsInRowAxis(const LayoutBox&) const;
204 void updateAutoMarginsInColumnAxisIfNeeded(LayoutBox&); 204 void updateAutoMarginsInColumnAxisIfNeeded(LayoutBox&);
205 void updateAutoMarginsInRowAxisIfNeeded(LayoutBox&); 205 void updateAutoMarginsInRowAxisIfNeeded(LayoutBox&);
206 206
207 #if ENABLE(ASSERT) 207 #if ENABLE(ASSERT)
208 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, GridSizingD ata&); 208 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, GridSizingD ata&);
209 #endif 209 #endif
210 210
211 LayoutUnit gridGapForDirection(GridTrackSizingDirection) const; 211 LayoutUnit gridGapForDirection(GridTrackSizingDirection, SizingOperation) co nst;
212 LayoutUnit guttersSize(GridTrackSizingDirection, size_t startLine, size_t sp an) const; 212 LayoutUnit guttersSize(GridTrackSizingDirection, size_t startLine, size_t sp an, SizingOperation) const;
213 213
214 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); 214 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection);
215 bool spanningItemCrossesFlexibleSizedTracks(const GridSpan&, GridTrackSizing Direction, SizingOperation) const; 215 bool spanningItemCrossesFlexibleSizedTracks(const GridSpan&, GridTrackSizing Direction, SizingOperation) const;
216 216
217 size_t gridColumnCount() const; 217 size_t gridColumnCount() const;
218 size_t gridRowCount() const; 218 size_t gridRowCount() const;
219 219
220 bool isOrthogonalChild(const LayoutBox&) const; 220 bool isOrthogonalChild(const LayoutBox&) const;
221 GridTrackSizingDirection flowAwareDirectionForChild(const LayoutBox&, GridTr ackSizingDirection) const; 221 GridTrackSizingDirection flowAwareDirectionForChild(const LayoutBox&, GridTr ackSizingDirection) const;
222 222
(...skipping 22 matching lines...) Expand all
245 245
246 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; 246 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr };
247 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; 247 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr };
248 }; 248 };
249 249
250 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 250 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
251 251
252 } // namespace blink 252 } // namespace blink
253 253
254 #endif // LayoutGrid_h 254 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698