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

Side by Side Diff: Source/core/rendering/RenderGrid.h

Issue 855643005: [CSS Grid Layout] Handling overflow on Content Alignment properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied suggested changes. Created 5 years, 11 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 LayoutUnit startOfColumnForChild(const RenderBox& child) const; 117 LayoutUnit startOfColumnForChild(const RenderBox& child) const;
118 LayoutUnit endOfColumnForChild(const RenderBox& child) const; 118 LayoutUnit endOfColumnForChild(const RenderBox& child) const;
119 LayoutUnit columnPositionLeft(const RenderBox&) const; 119 LayoutUnit columnPositionLeft(const RenderBox&) const;
120 LayoutUnit columnPositionRight(const RenderBox&) const; 120 LayoutUnit columnPositionRight(const RenderBox&) const;
121 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const; 121 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const;
122 LayoutUnit columnPositionForChild(const RenderBox&) const; 122 LayoutUnit columnPositionForChild(const RenderBox&) const;
123 LayoutUnit startOfRowForChild(const RenderBox& child) const; 123 LayoutUnit startOfRowForChild(const RenderBox& child) const;
124 LayoutUnit endOfRowForChild(const RenderBox& child) const; 124 LayoutUnit endOfRowForChild(const RenderBox& child) const;
125 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; 125 LayoutUnit centeredRowPositionForChild(const RenderBox&) const;
126 LayoutUnit rowPositionForChild(const RenderBox&) const; 126 LayoutUnit rowPositionForChild(const RenderBox&) const;
127 LayoutUnit contentPositionAndDistributionColumnOffset(LayoutUnit availableFr eeSpace, ContentPosition, ContentDistributionType, unsigned numberOfItems) const ; 127 LayoutUnit contentPositionAndDistributionColumnOffset(LayoutUnit availableFr eeSpace, ContentPosition, ContentDistributionType, OverflowAlignment, unsigned n umberOfItems) const;
128 LayoutUnit contentPositionAndDistributionRowOffset(LayoutUnit availableFreeS pace, ContentPosition, ContentDistributionType, unsigned numberOfItems) const; 128 LayoutUnit contentPositionAndDistributionRowOffset(LayoutUnit availableFreeS pace, ContentPosition, ContentDistributionType, OverflowAlignment, unsigned numb erOfItems) const;
129 LayoutPoint findChildLogicalPosition(const RenderBox&, LayoutSize contentAli gnmentOffset) const; 129 LayoutPoint findChildLogicalPosition(const RenderBox&, LayoutSize contentAli gnmentOffset) const;
130 GridCoordinate cachedGridCoordinate(const RenderBox&) const; 130 GridCoordinate cachedGridCoordinate(const RenderBox&) const;
131 131
132 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi rection, const Vector<GridTrack>&) const; 132 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi rection, const Vector<GridTrack>&) const;
133 133
134 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) override; 134 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) override;
135 bool allowedToStretchLogicalHeightForChild(const RenderBox& child) const; 135 bool allowedToStretchLogicalHeightForChild(const RenderBox& child) const;
136 bool needToStretchChildLogicalHeight(const RenderBox&) const; 136 bool needToStretchChildLogicalHeight(const RenderBox&) const;
137 LayoutUnit childIntrinsicHeight(const RenderBox&) const; 137 LayoutUnit childIntrinsicHeight(const RenderBox&) const;
138 LayoutUnit childIntrinsicWidth(const RenderBox&) const; 138 LayoutUnit childIntrinsicWidth(const RenderBox&) const;
(...skipping 30 matching lines...) Expand all
169 OrderIterator m_orderIterator; 169 OrderIterator m_orderIterator;
170 Vector<RenderBox*> m_gridItemsOverflowingGridArea; 170 Vector<RenderBox*> m_gridItemsOverflowingGridArea;
171 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; 171 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap;
172 }; 172 };
173 173
174 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); 174 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid());
175 175
176 } // namespace blink 176 } // namespace blink
177 177
178 #endif // RenderGrid_h 178 #endif // RenderGrid_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css-grid-layout/grid-content-alignment-overflow-expected.txt ('k') | Source/core/rendering/RenderGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698