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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; | 52 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; |
53 | 53 |
54 virtual bool avoidsFloats() const OVERRIDE { return true; } | 54 virtual bool avoidsFloats() const OVERRIDE { return true; } |
55 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE { return false;
} | 55 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE { return false;
} |
56 | 56 |
57 private: | 57 private: |
58 virtual bool isRenderGrid() const OVERRIDE { return true; } | 58 virtual bool isRenderGrid() const OVERRIDE { return true; } |
59 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 59 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
60 virtual void computePreferredLogicalWidths() OVERRIDE; | 60 virtual void computePreferredLogicalWidths() OVERRIDE; |
61 | 61 |
| 62 virtual void removeChild(RenderObject* child) OVERRIDE FINAL; |
| 63 |
62 LayoutUnit computePreferredTrackWidth(const GridLength&, size_t) const; | 64 LayoutUnit computePreferredTrackWidth(const GridLength&, size_t) const; |
63 | 65 |
64 class GridIterator; | 66 class GridIterator; |
65 enum TrackSizingDirection { ForColumns, ForRows }; | 67 enum TrackSizingDirection { ForColumns, ForRows }; |
66 void computedUsedBreadthOfGridTracks(TrackSizingDirection, Vector<GridTrack>
& columnTracks, Vector<GridTrack>& rowTracks); | 68 void computedUsedBreadthOfGridTracks(TrackSizingDirection, Vector<GridTrack>
& columnTracks, Vector<GridTrack>& rowTracks); |
67 LayoutUnit computeUsedBreadthOfMinLength(TrackSizingDirection, const GridLen
gth&) const; | 69 LayoutUnit computeUsedBreadthOfMinLength(TrackSizingDirection, const GridLen
gth&) const; |
68 LayoutUnit computeUsedBreadthOfMaxLength(TrackSizingDirection, const GridLen
gth&, LayoutUnit usedBreadth) const; | 70 LayoutUnit computeUsedBreadthOfMaxLength(TrackSizingDirection, const GridLen
gth&, LayoutUnit usedBreadth) const; |
69 LayoutUnit computeUsedBreadthOfSpecifiedLength(TrackSizingDirection, const L
ength&) const; | 71 LayoutUnit computeUsedBreadthOfSpecifiedLength(TrackSizingDirection, const L
ength&) const; |
70 void resolveContentBasedTrackSizingFunctions(TrackSizingDirection, Vector<Gr
idTrack>& columnTracks, Vector<GridTrack>& rowTracks, LayoutUnit& availableLogic
alSpace); | 72 void resolveContentBasedTrackSizingFunctions(TrackSizingDirection, Vector<Gr
idTrack>& columnTracks, Vector<GridTrack>& rowTracks, LayoutUnit& availableLogic
alSpace); |
71 | 73 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 135 } |
134 | 136 |
135 Vector<Vector<Vector<RenderBox*, 1> > > m_grid; | 137 Vector<Vector<Vector<RenderBox*, 1> > > m_grid; |
136 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; | 138 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; |
137 OrderIterator m_orderIterator; | 139 OrderIterator m_orderIterator; |
138 }; | 140 }; |
139 | 141 |
140 } // namespace WebCore | 142 } // namespace WebCore |
141 | 143 |
142 #endif // RenderGrid_h | 144 #endif // RenderGrid_h |
OLD | NEW |