| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 #if ENABLE(ASSERT) | 200 #if ENABLE(ASSERT) |
| 201 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, GridSizingD
ata&); | 201 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, GridSizingD
ata&); |
| 202 #endif | 202 #endif |
| 203 | 203 |
| 204 LayoutUnit gridGapForDirection(GridTrackSizingDirection) const; | 204 LayoutUnit gridGapForDirection(GridTrackSizingDirection) const; |
| 205 LayoutUnit guttersSize(GridTrackSizingDirection, size_t startLine, size_t sp
an) const; | 205 LayoutUnit guttersSize(GridTrackSizingDirection, size_t startLine, size_t sp
an) const; |
| 206 | 206 |
| 207 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); | 207 size_t gridItemSpan(const LayoutBox&, GridTrackSizingDirection); |
| 208 bool spanningItemCrossesFlexibleSizedTracks(const GridSpan&, GridTrackSizing
Direction, SizingOperation) const; | 208 bool spanningItemCrossesFlexibleSizedTracks(const GridSpan&, GridTrackSizing
Direction, SizingOperation) const; |
| 209 | 209 |
| 210 size_t autoRepeatTracksCount(GridTrackSizingDirection) const; |
| 210 size_t gridColumnCount() const; | 211 size_t gridColumnCount() const; |
| 211 size_t gridRowCount() const; | 212 size_t gridRowCount() const; |
| 212 | 213 |
| 213 bool isOrthogonalChild(const LayoutBox&) const; | 214 bool isOrthogonalChild(const LayoutBox&) const; |
| 214 GridTrackSizingDirection flowAwareDirectionForChild(const LayoutBox&, GridTr
ackSizingDirection) const; | 215 GridTrackSizingDirection flowAwareDirectionForChild(const LayoutBox&, GridTr
ackSizingDirection) const; |
| 215 | 216 |
| 216 typedef Vector<Vector<GridCell>> GridRepresentation; | 217 typedef Vector<Vector<GridCell>> GridRepresentation; |
| 217 GridRepresentation m_grid; | 218 GridRepresentation m_grid; |
| 218 bool m_gridIsDirty; | 219 bool m_gridIsDirty; |
| 219 Vector<LayoutUnit> m_rowPositions; | 220 Vector<LayoutUnit> m_rowPositions; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 238 | 239 |
| 239 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; | 240 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; |
| 240 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; | 241 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; |
| 241 }; | 242 }; |
| 242 | 243 |
| 243 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 244 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 244 | 245 |
| 245 } // namespace blink | 246 } // namespace blink |
| 246 | 247 |
| 247 #endif // LayoutGrid_h | 248 #endif // LayoutGrid_h |
| OLD | NEW |