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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox&, GridTrackSizin
gDirection, Vector<GridTrack>&); | 93 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox&, GridTrackSizin
gDirection, Vector<GridTrack>&); |
94 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; | 94 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; |
95 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); | 95 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); |
96 typedef bool (GridTrackSize::* FilterFunction)() const; | 96 typedef bool (GridTrackSize::* FilterFunction)() const; |
97 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio
n, GridSizingData&, RenderBox&, FilterFunction, SizingFunction, AccumulatorGette
r, AccumulatorGrowFunction); | 97 void resolveContentBasedTrackSizingFunctionsForItems(GridTrackSizingDirectio
n, GridSizingData&, RenderBox&, FilterFunction, SizingFunction, AccumulatorGette
r, AccumulatorGrowFunction); |
98 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<GridTrack*>* tracks
ForGrowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, GridSizing
Data&, LayoutUnit& availableLogicalSpace); | 98 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<GridTrack*>* tracks
ForGrowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, GridSizing
Data&, LayoutUnit& availableLogicalSpace); |
99 | 99 |
100 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan&
tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; | 100 double computeNormalizedFractionBreadth(Vector<GridTrack>&, const GridSpan&
tracksSpan, GridTrackSizingDirection, LayoutUnit availableLogicalSpace) const; |
101 | 101 |
102 const GridTrackSize& gridTrackSize(GridTrackSizingDirection, size_t) const; | 102 GridTrackSize gridTrackSize(GridTrackSizingDirection, size_t) const; |
103 | 103 |
104 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&); | 104 LayoutUnit logicalHeightForChild(RenderBox&, Vector<GridTrack>&); |
105 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 105 LayoutUnit minContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
106 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 106 LayoutUnit maxContentForChild(RenderBox&, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
107 LayoutUnit startOfColumnForChild(const RenderBox& child) const; | 107 LayoutUnit startOfColumnForChild(const RenderBox& child) const; |
108 LayoutUnit endOfColumnForChild(const RenderBox& child) const; | 108 LayoutUnit endOfColumnForChild(const RenderBox& child) const; |
109 LayoutUnit columnPositionAlignedWithGridContainerStart(const RenderBox&) con
st; | 109 LayoutUnit columnPositionAlignedWithGridContainerStart(const RenderBox&) con
st; |
110 LayoutUnit columnPositionAlignedWithGridContainerEnd(const RenderBox&) const
; | 110 LayoutUnit columnPositionAlignedWithGridContainerEnd(const RenderBox&) const
; |
111 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const; | 111 LayoutUnit centeredColumnPositionForChild(const RenderBox&) const; |
112 LayoutUnit columnPositionForChild(const RenderBox&) const; | 112 LayoutUnit columnPositionForChild(const RenderBox&) const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 OrderIterator m_orderIterator; | 150 OrderIterator m_orderIterator; |
151 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 151 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
152 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 152 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
153 }; | 153 }; |
154 | 154 |
155 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 155 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
156 | 156 |
157 } // namespace blink | 157 } // namespace blink |
158 | 158 |
159 #endif // RenderGrid_h | 159 #endif // RenderGrid_h |
OLD | NEW |