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 74 matching lines...) Loading... |
85 void placeItemsOnGrid(); | 85 void placeItemsOnGrid(); |
86 void populateExplicitGridAndOrderIterator(); | 86 void populateExplicitGridAndOrderIterator(); |
87 void placeSpecifiedMajorAxisItemsOnGrid(Vector<RenderBox*>); | 87 void placeSpecifiedMajorAxisItemsOnGrid(Vector<RenderBox*>); |
88 void placeAutoMajorAxisItemsOnGrid(Vector<RenderBox*>); | 88 void placeAutoMajorAxisItemsOnGrid(Vector<RenderBox*>); |
89 void placeAutoMajorAxisItemOnGrid(RenderBox*); | 89 void placeAutoMajorAxisItemOnGrid(RenderBox*); |
90 TrackSizingDirection autoPlacementMajorAxisDirection() const; | 90 TrackSizingDirection autoPlacementMajorAxisDirection() const; |
91 TrackSizingDirection autoPlacementMinorAxisDirection() const; | 91 TrackSizingDirection autoPlacementMinorAxisDirection() const; |
92 | 92 |
93 void layoutGridItems(); | 93 void layoutGridItems(); |
94 | 94 |
| 95 virtual bool supportsPartialLayout() const OVERRIDE { return false; } |
| 96 |
95 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, TrackSizingDir
ection, Vector<GridTrack>&); | 97 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, TrackSizingDir
ection, Vector<GridTrack>&); |
96 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; | 98 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; |
97 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); | 99 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); |
98 typedef bool (GridTrackSize::* FilterFunction)() const; | 100 typedef bool (GridTrackSize::* FilterFunction)() const; |
99 void resolveContentBasedTrackSizingFunctionsForItems(TrackSizingDirection, V
ector<GridTrack>& columnTracks, Vector<GridTrack>& rowTracks, RenderBox*, Filter
Function, SizingFunction, AccumulatorGetter, AccumulatorGrowFunction); | 101 void resolveContentBasedTrackSizingFunctionsForItems(TrackSizingDirection, V
ector<GridTrack>& columnTracks, Vector<GridTrack>& rowTracks, RenderBox*, Filter
Function, SizingFunction, AccumulatorGetter, AccumulatorGrowFunction); |
100 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<GridTrack*>* tracks
ForGrowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, LayoutUnit
& availableLogicalSpace); | 102 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<GridTrack*>* tracks
ForGrowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, LayoutUnit
& availableLogicalSpace); |
101 | 103 |
102 double computeNormalizedFractionBreadth(Vector<GridTrack>&, TrackSizingDirec
tion, LayoutUnit availableLogicalSpace) const; | 104 double computeNormalizedFractionBreadth(Vector<GridTrack>&, TrackSizingDirec
tion, LayoutUnit availableLogicalSpace) const; |
103 | 105 |
104 const GridTrackSize& gridTrackSize(TrackSizingDirection, size_t) const; | 106 const GridTrackSize& gridTrackSize(TrackSizingDirection, size_t) const; |
(...skipping 54 matching lines...) Loading... |
159 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderGrid()); | 161 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderGrid()); |
160 return static_cast<const RenderGrid*>(object); | 162 return static_cast<const RenderGrid*>(object); |
161 } | 163 } |
162 | 164 |
163 // Catch unneeded cast. | 165 // Catch unneeded cast. |
164 void toRenderGrid(const RenderGrid*); | 166 void toRenderGrid(const RenderGrid*); |
165 | 167 |
166 } // namespace WebCore | 168 } // namespace WebCore |
167 | 169 |
168 #endif // RenderGrid_h | 170 #endif // RenderGrid_h |
OLD | NEW |