| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi
zingDirection, LayoutUnit availableFreeSpace, unsigned numberOfGridTracks) const
; | 150 ContentAlignmentData computeContentPositionAndDistributionOffset(GridTrackSi
zingDirection, LayoutUnit availableFreeSpace, unsigned numberOfGridTracks) const
; |
| 151 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons
t; | 151 LayoutPoint findChildLogicalPosition(const LayoutBox&, GridSizingData&) cons
t; |
| 152 GridCoordinate cachedGridCoordinate(const LayoutBox&) const; | 152 GridCoordinate cachedGridCoordinate(const LayoutBox&) const; |
| 153 | 153 |
| 154 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; | 154 LayoutUnit gridAreaBreadthForChild(const LayoutBox& child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; |
| 155 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox&
, GridTrackSizingDirection, const GridSizingData&) const; | 155 LayoutUnit gridAreaBreadthForChildIncludingAlignmentOffsets(const LayoutBox&
, GridTrackSizingDirection, const GridSizingData&) const; |
| 156 | 156 |
| 157 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz
ingData&, LayoutUnit availableSpace); | 157 void applyStretchAlignmentToTracksIfNeeded(GridTrackSizingDirection, GridSiz
ingData&, LayoutUnit availableSpace); |
| 158 | 158 |
| 159 void paintChildren(const PaintInfo&, const LayoutPoint&) override; | 159 void paintChildren(const PaintInfo&, const LayoutPoint&) override; |
| 160 bool allowedToStretchLogicalHeightForChild(const LayoutBox& child) const; | 160 |
| 161 bool hasAutoSizeInColumnAxisForChild(const LayoutBox&) const; |
| 162 bool hasAutoSizeInRowAxisForChild(const LayoutBox&) const; |
| 163 bool allowedToStretchChildAlongColumnAxis(const LayoutBox&) const; |
| 164 bool allowedToStretchChildAlongRowAxis(const LayoutBox&) const; |
| 165 bool canShrinkToFitInRowAxisForChild(const LayoutBox&) const; |
| 166 bool hasAutoMinSizeInRowAxis(const LayoutBox&) const; |
| 161 bool needToStretchChildLogicalHeight(const LayoutBox&) const; | 167 bool needToStretchChildLogicalHeight(const LayoutBox&) const; |
| 162 LayoutUnit childIntrinsicHeight(const LayoutBox&) const; | 168 LayoutUnit childIntrinsicHeight(const LayoutBox&) const; |
| 163 LayoutUnit childIntrinsicWidth(const LayoutBox&) const; | 169 LayoutUnit childIntrinsicWidth(const LayoutBox&) const; |
| 164 LayoutUnit intrinsicLogicalHeightForChild(const LayoutBox&) const; | 170 LayoutUnit intrinsicLogicalHeightForChild(const LayoutBox&) const; |
| 165 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; | 171 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; |
| 166 LayoutUnit computeMarginLogicalHeightForChild(const LayoutBox&) const; | 172 LayoutUnit computeMarginLogicalHeightForChild(const LayoutBox&) const; |
| 167 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; | 173 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; |
| 168 void applyStretchAlignmentToChildIfNeeded(LayoutBox&, LayoutUnit gridAreaBre
adthForChild); | 174 void applyStretchAlignmentToChildIfNeeded(LayoutBox&); |
| 169 | 175 |
| 170 #if ENABLE(ASSERT) | 176 #if ENABLE(ASSERT) |
| 171 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); | 177 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); |
| 172 #endif | 178 #endif |
| 173 | 179 |
| 174 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); | 180 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); |
| 175 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; | 181 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; |
| 176 | 182 |
| 177 size_t gridColumnCount() const | 183 size_t gridColumnCount() const |
| 178 { | 184 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 196 OrderIterator m_orderIterator; | 202 OrderIterator m_orderIterator; |
| 197 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 203 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
| 198 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; | 204 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; |
| 199 }; | 205 }; |
| 200 | 206 |
| 201 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 207 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 202 | 208 |
| 203 } // namespace blink | 209 } // namespace blink |
| 204 | 210 |
| 205 #endif // LayoutGrid_h | 211 #endif // LayoutGrid_h |
| OLD | NEW |