| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const
; | 177 LayoutUnit columnAxisOffsetForChild(const LayoutBox&, GridSizingData&) const
; |
| 178 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi
zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks
) const; | 178 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi
zingDirection, const LayoutUnit& availableFreeSpace, unsigned numberOfGridTracks
) const; |
| 179 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons
t; | 179 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons
t; |
| 180 GridArea cachedGridArea(const LayoutBox&) const; | 180 GridArea cachedGridArea(const LayoutBox&) const; |
| 181 GridSpan cachedGridSpan(const LayoutBox&, GridTrackSizingDirection) const; | 181 GridSpan cachedGridSpan(const LayoutBox&, GridTrackSizingDirection) const; |
| 182 | 182 |
| 183 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi
rection, const GridSizingData&) const; | 183 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi
rection, const GridSizingData&) const; |
| 184 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox&
, GridTrackSizingDirection, const GridSizingData&) const; | 184 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox&
, GridTrackSizingDirection, const GridSizingData&) const; |
| 185 LayoutUnit assumedRowsSizeForOrthogonalChild(const LayoutBox&, SizingOperati
on) const; | 185 LayoutUnit assumedRowsSizeForOrthogonalChild(const LayoutBox&, SizingOperati
on) const; |
| 186 | 186 |
| 187 StyleSelfAlignmentData justifySelfForChild(const LayoutBox&) const; |
| 188 StyleSelfAlignmentData alignSelfForChild(const LayoutBox&) const; |
| 187 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz
ingData&); | 189 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz
ingData&); |
| 188 | 190 |
| 189 void paintChildren(const PaintInfo&, const LayoutPoint&) const override; | 191 void paintChildren(const PaintInfo&, const LayoutPoint&) const override; |
| 190 | 192 |
| 191 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; | 193 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; |
| 192 LayoutUnit computeMarginLogicalSizeForChild(MarginDirection, const LayoutBox
&) const; | 194 LayoutUnit computeMarginLogicalSizeForChild(MarginDirection, const LayoutBox
&) const; |
| 193 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; | 195 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; |
| 194 void applyStretchAlignmentToChildIfNeeded(LayoutBox&); | 196 void applyStretchAlignmentToChildIfNeeded(LayoutBox&); |
| 195 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const; | 197 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const; |
| 196 bool hasAutoMarginsInRowAxis(const LayoutBox&) const; | 198 bool hasAutoMarginsInRowAxis(const LayoutBox&) const; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 240 |
| 239 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; | 241 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; |
| 240 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; | 242 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 245 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 244 | 246 |
| 245 } // namespace blink | 247 } // namespace blink |
| 246 | 248 |
| 247 #endif // LayoutGrid_h | 249 #endif // LayoutGrid_h |
| OLD | NEW |