| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 void paintChildren(const PaintInfo&, const LayoutPoint&) override; | 159 void paintChildren(const PaintInfo&, const LayoutPoint&) override; |
| 160 | 160 |
| 161 bool needToStretchChildLogicalHeight(const LayoutBox&) const; | 161 bool needToStretchChildLogicalHeight(const LayoutBox&) const; |
| 162 LayoutUnit childIntrinsicHeight(const LayoutBox&) const; | 162 LayoutUnit childIntrinsicHeight(const LayoutBox&) const; |
| 163 LayoutUnit childIntrinsicWidth(const LayoutBox&) const; | 163 LayoutUnit childIntrinsicWidth(const LayoutBox&) const; |
| 164 LayoutUnit intrinsicLogicalHeightForChild(const LayoutBox&) const; | 164 LayoutUnit intrinsicLogicalHeightForChild(const LayoutBox&) const; |
| 165 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; | 165 LayoutUnit marginLogicalHeightForChild(const LayoutBox&) const; |
| 166 LayoutUnit computeMarginLogicalHeightForChild(const LayoutBox&) const; | 166 LayoutUnit computeMarginLogicalHeightForChild(const LayoutBox&) const; |
| 167 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; | 167 LayoutUnit availableAlignmentSpaceForChildBeforeStretching(LayoutUnit gridAr
eaBreadthForChild, const LayoutBox&) const; |
| 168 void applyStretchAlignmentToChildIfNeeded(LayoutBox&); | 168 void applyStretchAlignmentToChildIfNeeded(LayoutBox&); |
| 169 bool hasAutoMarginsInColumnAxis(const LayoutBox&) const; |
| 170 bool hasAutoMarginsInRowAxis(const LayoutBox&) const; |
| 171 void resetAutoMarginsAndLogicalTopInColumnAxis(LayoutBox&); |
| 172 void updateAutoMarginsInColumnAxisIfNeeded(LayoutBox&); |
| 173 void updateAutoMarginsInRowAxisIfNeeded(LayoutBox&); |
| 169 | 174 |
| 170 #if ENABLE(ASSERT) | 175 #if ENABLE(ASSERT) |
| 171 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); | 176 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); |
| 172 #endif | 177 #endif |
| 173 | 178 |
| 174 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); | 179 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); |
| 175 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; | 180 bool spanningItemCrossesFlexibleSizedTracks(const GridCoordinate&, GridTrack
SizingDirection) const; |
| 176 | 181 |
| 177 size_t gridColumnCount() const | 182 size_t gridColumnCount() const |
| 178 { | 183 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 196 OrderIterator m_orderIterator; | 201 OrderIterator m_orderIterator; |
| 197 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 202 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
| 198 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; | 203 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; |
| 199 }; | 204 }; |
| 200 | 205 |
| 201 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 206 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 202 | 207 |
| 203 } // namespace blink | 208 } // namespace blink |
| 204 | 209 |
| 205 #endif // LayoutGrid_h | 210 #endif // LayoutGrid_h |
| OLD | NEW |