OLD | NEW |
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS
izingDirection, GridSizingData&) const; | 170 bool updateOverrideContainingBlockContentSizeForChild(LayoutBox&, GridTrackS
izingDirection, GridSizingData&) const; |
171 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&) const; | 171 LayoutUnit logicalHeightForChild(LayoutBox&, GridSizingData&) const; |
172 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD
ata&) const; | 172 LayoutUnit minSizeForChild(LayoutBox&, GridTrackSizingDirection, GridSizingD
ata&) const; |
173 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi
ngData&) const; | 173 LayoutUnit minContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi
ngData&) const; |
174 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi
ngData&) const; | 174 LayoutUnit maxContentForChild(LayoutBox&, GridTrackSizingDirection, GridSizi
ngData&) const; |
175 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const; | 175 GridAxisPosition columnAxisPositionForChild(const LayoutBox&) const; |
176 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const; | 176 GridAxisPosition rowAxisPositionForChild(const LayoutBox&) const; |
177 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const; | 177 LayoutUnit rowAxisOffsetForChild(const LayoutBox&, GridSizingData&) const; |
178 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const
; | 178 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const
; |
179 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi
zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks
) const; | 179 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi
zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks
) const; |
| 180 LayoutPoint gridAreaLogicalPosition(const GridArea&) const; |
180 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons
t; | 181 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons
t; |
181 GridArea cachedGridArea(const LayoutBox&) const; | 182 GridArea cachedGridArea(const LayoutBox&) const; |
182 GridSpan cachedGridSpan(const LayoutBox&, GridTrackSizingDirection) const; | 183 GridSpan cachedGridSpan(const LayoutBox&, GridTrackSizingDirection) const; |
183 | 184 |
184 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi
rection, const GridSizingData&) const; | 185 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi
rection, const GridSizingData&) const; |
185 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox&
, GridTrackSizingDirection, const GridSizingData&) const; | 186 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox&
, GridTrackSizingDirection, const GridSizingData&) const; |
186 LayoutUnit assumedRowsSizeForOrthogonalChild(const LayoutBox&, SizingOperati
on) const; | 187 LayoutUnit assumedRowsSizeForOrthogonalChild(const LayoutBox&, SizingOperati
on) const; |
187 | 188 |
188 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz
ingData&); | 189 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz
ingData&); |
189 | 190 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; | 250 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; |
250 | 251 |
251 Optional<bool> m_hasDefiniteLogicalHeight; | 252 Optional<bool> m_hasDefiniteLogicalHeight; |
252 }; | 253 }; |
253 | 254 |
254 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 255 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
255 | 256 |
256 } // namespace blink | 257 } // namespace blink |
257 | 258 |
258 #endif // LayoutGrid_h | 259 #endif // LayoutGrid_h |
OLD | NEW |