| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 LayoutUnit columnPositionForChild(const LayoutBox&) const; | 147 LayoutUnit columnPositionForChild(const LayoutBox&) const; |
| 148 LayoutUnit rowPositionForChild(const LayoutBox&) const; | 148 LayoutUnit rowPositionForChild(const LayoutBox&) const; |
| 149 void computeContentPositionAndDistributionRowOffset(LayoutUnit availableFree
Space, GridSizingData&) const; | 149 void computeContentPositionAndDistributionRowOffset(LayoutUnit availableFree
Space, GridSizingData&) const; |
| 150 void computeContentPositionAndDistributionColumnOffset(LayoutUnit availableF
reeSpace, GridSizingData&) const; | 150 void computeContentPositionAndDistributionColumnOffset(LayoutUnit availableF
reeSpace, GridSizingData&) 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 | 155 |
| 156 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) override; | 156 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) override; |
| 157 bool allowedToStretchLogicalHeightForChild(const LayoutBox& child) const; | 157 bool allowedToStretchLogicalHeightForChild(const LayoutBox&) const; |
| 158 bool allowedToStretchLogicalWidthForChild(const LayoutBox&) const; |
| 158 bool needToStretchChildLogicalHeight(const LayoutBox&) const; | 159 bool needToStretchChildLogicalHeight(const LayoutBox&) const; |
| 159 LayoutUnit childIntrinsicHeight(const LayoutBox&) const; | 160 LayoutUnit childIntrinsicHeight(const LayoutBox&) const; |
| 160 LayoutUnit childIntrinsicWidth(const LayoutBox&) const; | 161 LayoutUnit childIntrinsicWidth(const LayoutBox&) const; |
| 161 LayoutUnit intrinsicLogicalHeightForChild(const LayoutBox&) const; | 162 LayoutUnit intrinsicLogicalHeightForChild(const LayoutBox&) const; |
| 162 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; | 163 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; |
| 163 LayoutUnit computeMarginLogicalHeightForChild(const LayoutBox&) const; | 164 LayoutUnit computeMarginLogicalHeightForChild(const LayoutBox&) const; |
| 164 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; | 165 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; |
| 165 void applyStretchAlignmentToChildIfNeeded(LayoutBox&, LayoutUnit gridAreaBre
adthForChild); | 166 void applyStretchAlignmentToChildIfNeeded(LayoutBox&); |
| 166 | 167 |
| 167 #if ENABLE(ASSERT) | 168 #if ENABLE(ASSERT) |
| 168 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); | 169 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); |
| 169 #endif | 170 #endif |
| 170 | 171 |
| 171 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); | 172 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); |
| 172 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; | 173 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; |
| 173 | 174 |
| 174 size_t gridColumnCount() const | 175 size_t gridColumnCount() const |
| 175 { | 176 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 193 OrderIterator m_orderIterator; | 194 OrderIterator m_orderIterator; |
| 194 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 195 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
| 195 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; | 196 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; |
| 196 }; | 197 }; |
| 197 | 198 |
| 198 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 199 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 199 | 200 |
| 200 } // namespace blink | 201 } // namespace blink |
| 201 | 202 |
| 202 #endif // LayoutGrid_h | 203 #endif // LayoutGrid_h |
| OLD | NEW |