| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 double computeNormalizedFractionBreadth(Vector<GridTrack>&, GridTrackSizingD
irection, LayoutUnit availableLogicalSpace) const; | 105 double computeNormalizedFractionBreadth(Vector<GridTrack>&, GridTrackSizingD
irection, LayoutUnit availableLogicalSpace) const; |
| 106 | 106 |
| 107 const GridTrackSize& gridTrackSize(GridTrackSizingDirection, size_t) const; | 107 const GridTrackSize& gridTrackSize(GridTrackSizingDirection, size_t) const; |
| 108 size_t explicitGridColumnCount() const; | 108 size_t explicitGridColumnCount() const; |
| 109 size_t explicitGridRowCount() const; | 109 size_t explicitGridRowCount() const; |
| 110 size_t explicitGridSizeForSide(GridPositionSide) const; | 110 size_t explicitGridSizeForSide(GridPositionSide) const; |
| 111 | 111 |
| 112 LayoutUnit logicalContentHeightForChild(RenderBox*, Vector<GridTrack>&); | 112 LayoutUnit logicalContentHeightForChild(RenderBox*, Vector<GridTrack>&); |
| 113 LayoutUnit minContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 113 LayoutUnit minContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
| 114 LayoutUnit maxContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); | 114 LayoutUnit maxContentForChild(RenderBox*, GridTrackSizingDirection, Vector<G
ridTrack>& columnTracks); |
| 115 LayoutPoint findChildLogicalPosition(RenderBox*, const GridSizingData&); | 115 LayoutUnit columnPositionAlignedWithGridContainerStart(const RenderBox*) con
st; |
| 116 LayoutUnit columnPositionAlignedWithGridContainerEnd(const RenderBox*) const
; |
| 117 LayoutUnit centeredColumnPositionForChild(const RenderBox*) const; |
| 118 LayoutUnit columnPositionForChild(const RenderBox*) const; |
| 119 LayoutUnit rowPositionForChild(const RenderBox*) const; |
| 120 LayoutPoint findChildLogicalPosition(const RenderBox*) const; |
| 116 GridCoordinate cachedGridCoordinate(const RenderBox*) const; | 121 GridCoordinate cachedGridCoordinate(const RenderBox*) const; |
| 117 | 122 |
| 118 GridSpan resolveGridPositionsFromAutoPlacementPosition(const RenderBox*, Gri
dTrackSizingDirection, size_t) const; | 123 GridSpan resolveGridPositionsFromAutoPlacementPosition(const RenderBox*, Gri
dTrackSizingDirection, size_t) const; |
| 119 PassOwnPtr<GridSpan> resolveGridPositionsFromStyle(const RenderBox*, GridTra
ckSizingDirection) const; | 124 PassOwnPtr<GridSpan> resolveGridPositionsFromStyle(const RenderBox*, GridTra
ckSizingDirection) const; |
| 120 size_t resolveNamedGridLinePositionFromStyle(const GridPosition&, GridPositi
onSide) const; | 125 size_t resolveNamedGridLinePositionFromStyle(const GridPosition&, GridPositi
onSide) const; |
| 121 size_t resolveGridPositionFromStyle(const GridPosition&, GridPositionSide) c
onst; | 126 size_t resolveGridPositionFromStyle(const GridPosition&, GridPositionSide) c
onst; |
| 122 PassOwnPtr<GridSpan> resolveGridPositionAgainstOppositePosition(size_t resol
vedOppositePosition, const GridPosition&, GridPositionSide) const; | 127 PassOwnPtr<GridSpan> resolveGridPositionAgainstOppositePosition(size_t resol
vedOppositePosition, const GridPosition&, GridPositionSide) const; |
| 123 PassOwnPtr<GridSpan> resolveNamedGridLinePositionAgainstOppositePosition(siz
e_t resolvedOppositePosition, const GridPosition&, GridPositionSide) const; | 128 PassOwnPtr<GridSpan> resolveNamedGridLinePositionAgainstOppositePosition(siz
e_t resolvedOppositePosition, const GridPosition&, GridPositionSide) const; |
| 124 PassOwnPtr<GridSpan> resolveBeforeStartNamedGridLinePositionAgainstOppositeP
osition(size_t resolvedOppositePosition, const GridPosition&, const Vector<size_
t>&) const; | 129 PassOwnPtr<GridSpan> resolveBeforeStartNamedGridLinePositionAgainstOppositeP
osition(size_t resolvedOppositePosition, const GridPosition&, const Vector<size_
t>&) const; |
| 125 PassOwnPtr<GridSpan> resolveAfterEndNamedGridLinePositionAgainstOppositePosi
tion(size_t resolvedOppositePosition, const GridPosition&, const Vector<size_t>&
) const; | 130 PassOwnPtr<GridSpan> resolveAfterEndNamedGridLinePositionAgainstOppositePosi
tion(size_t resolvedOppositePosition, const GridPosition&, const Vector<size_t>&
) const; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 155 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; | 160 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; |
| 156 OrderIterator m_orderIterator; | 161 OrderIterator m_orderIterator; |
| 157 bool m_gridItemOverflowGridArea; | 162 bool m_gridItemOverflowGridArea; |
| 158 }; | 163 }; |
| 159 | 164 |
| 160 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 165 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
| 161 | 166 |
| 162 } // namespace WebCore | 167 } // namespace WebCore |
| 163 | 168 |
| 164 #endif // RenderGrid_h | 169 #endif // RenderGrid_h |
| OLD | NEW |