| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 LayoutUnit startOfRowForChild(const RenderBox& child) const; | 120 LayoutUnit startOfRowForChild(const RenderBox& child) const; |
| 121 LayoutUnit endOfRowForChild(const RenderBox& child) const; | 121 LayoutUnit endOfRowForChild(const RenderBox& child) const; |
| 122 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; | 122 LayoutUnit centeredRowPositionForChild(const RenderBox&) const; |
| 123 LayoutUnit rowPositionForChild(const RenderBox&) const; | 123 LayoutUnit rowPositionForChild(const RenderBox&) const; |
| 124 LayoutPoint findChildLogicalPosition(const RenderBox&) const; | 124 LayoutPoint findChildLogicalPosition(const RenderBox&) const; |
| 125 GridCoordinate cachedGridCoordinate(const RenderBox&) const; | 125 GridCoordinate cachedGridCoordinate(const RenderBox&) const; |
| 126 | 126 |
| 127 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; | 127 LayoutUnit gridAreaBreadthForChild(const RenderBox& child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; |
| 128 | 128 |
| 129 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; | 129 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| 130 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); | |
| 131 | 130 |
| 132 #if ENABLE(ASSERT) | 131 #if ENABLE(ASSERT) |
| 133 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); | 132 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); |
| 134 #endif | 133 #endif |
| 135 | 134 |
| 136 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection); | 135 size_t gridItemSpan(const RenderBox&, GridTrackSizingDirection); |
| 137 | 136 |
| 138 size_t gridColumnCount() const | 137 size_t gridColumnCount() const |
| 139 { | 138 { |
| 140 ASSERT(!gridIsDirty()); | 139 ASSERT(!gridIsDirty()); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 155 OrderIterator m_orderIterator; | 154 OrderIterator m_orderIterator; |
| 156 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 155 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
| 157 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 156 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
| 158 }; | 157 }; |
| 159 | 158 |
| 160 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 159 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
| 161 | 160 |
| 162 } // namespace blink | 161 } // namespace blink |
| 163 | 162 |
| 164 #endif // RenderGrid_h | 163 #endif // RenderGrid_h |
| OLD | NEW |