| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 bool namedGridLinesDefinitionDidChange(const RenderStyle*) const; | 70 bool namedGridLinesDefinitionDidChange(const RenderStyle*) const; |
| 71 | 71 |
| 72 LayoutUnit computePreferredTrackWidth(const GridLength&, size_t) const; | 72 LayoutUnit computePreferredTrackWidth(const GridLength&, size_t) const; |
| 73 | 73 |
| 74 class GridIterator; | 74 class GridIterator; |
| 75 enum TrackSizingDirection { ForColumns, ForRows }; | 75 enum TrackSizingDirection { ForColumns, ForRows }; |
| 76 void computedUsedBreadthOfGridTracks(TrackSizingDirection, Vector<GridTrack>
& columnTracks, Vector<GridTrack>& rowTracks); | 76 void computedUsedBreadthOfGridTracks(TrackSizingDirection, Vector<GridTrack>
& columnTracks, Vector<GridTrack>& rowTracks); |
| 77 LayoutUnit computeUsedBreadthOfMinLength(TrackSizingDirection, const GridLen
gth&) const; | 77 LayoutUnit computeUsedBreadthOfMinLength(TrackSizingDirection, const GridLen
gth&) const; |
| 78 LayoutUnit computeUsedBreadthOfMaxLength(TrackSizingDirection, const GridLen
gth&, LayoutUnit usedBreadth) const; | 78 LayoutUnit computeUsedBreadthOfMaxLength(TrackSizingDirection, const GridLen
gth&, LayoutUnit usedBreadth) const; |
| 79 LayoutUnit computeUsedBreadthOfSpecifiedLength(TrackSizingDirection, const L
ength&) const; | 79 LayoutUnit computeUsedBreadthOfSpecifiedLength(TrackSizingDirection, const L
ength&) const; |
| 80 void resolveContentBasedTrackSizingFunctions(TrackSizingDirection, Vector<Gr
idTrack>& columnTracks, Vector<GridTrack>& rowTracks, LayoutUnit& availableLogic
alSpace); | 80 void resolveContentBasedTrackSizingFunctions(TrackSizingDirection, Vector<Gr
idTrack>& columnTracks, Vector<GridTrack>& rowTracks, Vector<size_t>, LayoutUnit
& availableLogicalSpace); |
| 81 | 81 |
| 82 void growGrid(TrackSizingDirection); | 82 void growGrid(TrackSizingDirection); |
| 83 void insertItemIntoGrid(RenderBox*, size_t rowTrack, size_t columnTrack); | 83 void insertItemIntoGrid(RenderBox*, size_t rowTrack, size_t columnTrack); |
| 84 void insertItemIntoGrid(RenderBox*, const GridCoordinate&); | 84 void insertItemIntoGrid(RenderBox*, const GridCoordinate&); |
| 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; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderGrid()); | 159 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderGrid()); |
| 160 return static_cast<const RenderGrid*>(object); | 160 return static_cast<const RenderGrid*>(object); |
| 161 } | 161 } |
| 162 | 162 |
| 163 // Catch unneeded cast. | 163 // Catch unneeded cast. |
| 164 void toRenderGrid(const RenderGrid*); | 164 void toRenderGrid(const RenderGrid*); |
| 165 | 165 |
| 166 } // namespace WebCore | 166 } // namespace WebCore |
| 167 | 167 |
| 168 #endif // RenderGrid_h | 168 #endif // RenderGrid_h |
| OLD | NEW |