| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 LayoutUnit columnPositionAlignedWithGridContainerStart(const RenderBox*) con
st; | 117 LayoutUnit columnPositionAlignedWithGridContainerStart(const RenderBox*) con
st; |
| 118 LayoutUnit columnPositionAlignedWithGridContainerEnd(const RenderBox*) const
; | 118 LayoutUnit columnPositionAlignedWithGridContainerEnd(const RenderBox*) const
; |
| 119 LayoutUnit centeredColumnPositionForChild(const RenderBox*) const; | 119 LayoutUnit centeredColumnPositionForChild(const RenderBox*) const; |
| 120 LayoutUnit columnPositionForChild(const RenderBox*) const; | 120 LayoutUnit columnPositionForChild(const RenderBox*) const; |
| 121 LayoutUnit rowPositionForChild(const RenderBox*) const; | 121 LayoutUnit rowPositionForChild(const RenderBox*) const; |
| 122 LayoutPoint findChildLogicalPosition(const RenderBox*) const; | 122 LayoutPoint findChildLogicalPosition(const RenderBox*) const; |
| 123 GridCoordinate cachedGridCoordinate(const RenderBox*) const; | 123 GridCoordinate cachedGridCoordinate(const RenderBox*) const; |
| 124 | 124 |
| 125 GridSpan resolveGridPositionsFromAutoPlacementPosition(const RenderBox*, Gri
dTrackSizingDirection, size_t) const; | 125 GridSpan resolveGridPositionsFromAutoPlacementPosition(const RenderBox*, Gri
dTrackSizingDirection, size_t) const; |
| 126 PassOwnPtr<GridSpan> resolveGridPositionsFromStyle(const RenderBox*, GridTra
ckSizingDirection) const; | 126 PassOwnPtr<GridSpan> resolveGridPositionsFromStyle(const RenderBox*, GridTra
ckSizingDirection) const; |
| 127 size_t resolveNamedGridLinePositionFromStyle(const GridPosition&, GridPositi
onSide) const; | 127 GridResolvedPosition resolveNamedGridLinePositionFromStyle(const GridPositio
n&, GridPositionSide) const; |
| 128 size_t resolveGridPositionFromStyle(const GridPosition&, GridPositionSide) c
onst; | 128 GridResolvedPosition resolveGridPositionFromStyle(const GridPosition&, GridP
ositionSide) const; |
| 129 PassOwnPtr<GridSpan> resolveGridPositionAgainstOppositePosition(size_t resol
vedOppositePosition, const GridPosition&, GridPositionSide) const; | 129 PassOwnPtr<GridSpan> resolveGridPositionAgainstOppositePosition(const GridRe
solvedPosition& resolvedOppositePosition, const GridPosition&, GridPositionSide)
const; |
| 130 PassOwnPtr<GridSpan> resolveNamedGridLinePositionAgainstOppositePosition(siz
e_t resolvedOppositePosition, const GridPosition&, GridPositionSide) const; | 130 PassOwnPtr<GridSpan> resolveNamedGridLinePositionAgainstOppositePosition(con
st GridResolvedPosition& resolvedOppositePosition, const GridPosition&, GridPosi
tionSide) const; |
| 131 PassOwnPtr<GridSpan> resolveBeforeStartNamedGridLinePositionAgainstOppositeP
osition(size_t resolvedOppositePosition, const GridPosition&, const Vector<size_
t>&) const; | |
| 132 PassOwnPtr<GridSpan> resolveAfterEndNamedGridLinePositionAgainstOppositePosi
tion(size_t resolvedOppositePosition, const GridPosition&, const Vector<size_t>&
) const; | |
| 133 | 131 |
| 134 LayoutUnit gridAreaBreadthForChild(const RenderBox* child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; | 132 LayoutUnit gridAreaBreadthForChild(const RenderBox* child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; |
| 135 | 133 |
| 136 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; | 134 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| 137 | 135 |
| 138 bool gridIsDirty() const { return m_gridIsDirty; } | 136 bool gridIsDirty() const { return m_gridIsDirty; } |
| 139 | 137 |
| 140 #ifndef NDEBUG | 138 #ifndef NDEBUG |
| 141 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); | 139 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); |
| 142 #endif | 140 #endif |
| (...skipping 20 matching lines...) Expand all Loading... |
| 163 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 161 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
| 164 | 162 |
| 165 friend class GridCoordinateSorter; | 163 friend class GridCoordinateSorter; |
| 166 }; | 164 }; |
| 167 | 165 |
| 168 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 166 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
| 169 | 167 |
| 170 } // namespace WebCore | 168 } // namespace WebCore |
| 171 | 169 |
| 172 #endif // RenderGrid_h | 170 #endif // RenderGrid_h |
| OLD | NEW |