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

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

Issue 1709963002: [css-align] New CSS Value 'normal' for Self Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New test for alignment and anonymous boxes. Created 4 years, 6 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const; 172 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const;
173 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const ; 173 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const ;
174 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks ) const; 174 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks ) const;
175 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons t; 175 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons t;
176 GridArea cachedGridArea(const LayoutBox&) const; 176 GridArea cachedGridArea(const LayoutBox&) const;
177 GridSpan cachedGridSpan(const LayoutBox&, GridTrackSizingDirection) const; 177 GridSpan cachedGridSpan(const LayoutBox&, GridTrackSizingDirection) const;
178 178
179 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi rection, const GridSizingData&) const; 179 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi rection, const GridSizingData&) const;
180 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox& , GridTrackSizingDirection, const GridSizingData&) const; 180 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox& , GridTrackSizingDirection, const GridSizingData&) const;
181 181
182 StyleSelfAlignmentData justifySelfForChild(const LayoutBox&) const;
183 StyleSelfAlignmentData alignSelfForChild(const LayoutBox&) const;
182 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz ingData&); 184 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz ingData&);
183 185
184 void paintChildren(const PaintInfo&, const LayoutPoint&) const override; 186 void paintChildren(const PaintInfo&, const LayoutPoint&) const override;
185 187
186 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; 188 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const;
187 LayoutUnit computeMarginLogicalSizeForChild(MarginDirection, const LayoutBox &) const; 189 LayoutUnit computeMarginLogicalSizeForChild(MarginDirection, const LayoutBox &) const;
188 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr eaBreadthForChild, const LayoutBox&) const; 190 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr eaBreadthForChild, const LayoutBox&) const;
189 void applyStretchAlignmentToChildIfNeeded(LayoutBox&); 191 void applyStretchAlignmentToChildIfNeeded(LayoutBox&);
190 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const; 192 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const;
191 bool hasAutoMarginsInRowAxis(const LayoutBox&) const; 193 bool hasAutoMarginsInRowAxis(const LayoutBox&) const;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 227
226 size_t m_autoRepeatColumns { 0 }; 228 size_t m_autoRepeatColumns { 0 };
227 size_t m_autoRepeatRows { 0 }; 229 size_t m_autoRepeatRows { 0 };
228 }; 230 };
229 231
230 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 232 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
231 233
232 } // namespace blink 234 } // namespace blink
233 235
234 #endif // LayoutGrid_h 236 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698