| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con
st Length&) const; | 77 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con
st Length&) const; |
| 78 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS
izingData&, LayoutUnit& availableLogicalSpace); | 78 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS
izingData&, LayoutUnit& availableLogicalSpace); |
| 79 | 79 |
| 80 void ensureGridSize(size_t maximumRowIndex, size_t maximumColumnIndex); | 80 void ensureGridSize(size_t maximumRowIndex, size_t maximumColumnIndex); |
| 81 void insertItemIntoGrid(RenderBox*, const GridCoordinate&); | 81 void insertItemIntoGrid(RenderBox*, const GridCoordinate&); |
| 82 void placeItemsOnGrid(); | 82 void placeItemsOnGrid(); |
| 83 void populateExplicitGridAndOrderIterator(); | 83 void populateExplicitGridAndOrderIterator(); |
| 84 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri
d(const RenderBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions
) const; | 84 PassOwnPtr<GridCoordinate> createEmptyGridAreaAtSpecifiedPositionsOutsideGri
d(const RenderBox*, GridTrackSizingDirection, const GridSpan& specifiedPositions
) const; |
| 85 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<RenderBox*>&); | 85 void placeSpecifiedMajorAxisItemsOnGrid(const Vector<RenderBox*>&); |
| 86 void placeAutoMajorAxisItemsOnGrid(const Vector<RenderBox*>&); | 86 void placeAutoMajorAxisItemsOnGrid(const Vector<RenderBox*>&); |
| 87 void placeAutoMajorAxisItemOnGrid(RenderBox*); | 87 void placeAutoMajorAxisItemOnGrid(RenderBox*, std::pair<size_t, size_t>& aut
oPlacementCursor); |
| 88 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; | 88 GridTrackSizingDirection autoPlacementMajorAxisDirection() const; |
| 89 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; | 89 GridTrackSizingDirection autoPlacementMinorAxisDirection() const; |
| 90 | 90 |
| 91 void layoutGridItems(); | 91 void layoutGridItems(); |
| 92 void populateGridPositions(const GridSizingData&); | 92 void populateGridPositions(const GridSizingData&); |
| 93 | 93 |
| 94 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, GridTrackSizin
gDirection, Vector<GridTrack>&); | 94 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, GridTrackSizin
gDirection, Vector<GridTrack>&); |
| 95 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; | 95 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; |
| 96 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); | 96 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); |
| 97 typedef bool (GridTrackSize::* FilterFunction)() const; | 97 typedef bool (GridTrackSize::* FilterFunction)() const; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 OrderIterator m_orderIterator; | 149 OrderIterator m_orderIterator; |
| 150 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 150 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
| 151 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 151 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 154 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
| 155 | 155 |
| 156 } // namespace WebCore | 156 } // namespace WebCore |
| 157 | 157 |
| 158 #endif // RenderGrid_h | 158 #endif // RenderGrid_h |
| OLD | NEW |