| 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 rowPositionForChild(const RenderBox*) const; | 117 LayoutUnit rowPositionForChild(const RenderBox*) const; |
| 118 LayoutPoint findChildLogicalPosition(const RenderBox*) const; | 118 LayoutPoint findChildLogicalPosition(const RenderBox*) const; |
| 119 GridCoordinate cachedGridCoordinate(const RenderBox*) const; | 119 GridCoordinate cachedGridCoordinate(const RenderBox*) const; |
| 120 | 120 |
| 121 LayoutUnit gridAreaBreadthForChild(const RenderBox* child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; | 121 LayoutUnit gridAreaBreadthForChild(const RenderBox* child, GridTrackSizingDi
rection, const Vector<GridTrack>&) const; |
| 122 | 122 |
| 123 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; | 123 virtual void paintChildren(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| 124 | 124 |
| 125 bool gridIsDirty() const { return m_gridIsDirty; } | 125 bool gridIsDirty() const { return m_gridIsDirty; } |
| 126 | 126 |
| 127 #ifndef NDEBUG | 127 #if ENABLE(ASSERT) |
| 128 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); | 128 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, const Vecto
r<GridTrack>&); |
| 129 #endif | 129 #endif |
| 130 | 130 |
| 131 size_t gridColumnCount() const | 131 size_t gridColumnCount() const |
| 132 { | 132 { |
| 133 ASSERT(!gridIsDirty()); | 133 ASSERT(!gridIsDirty()); |
| 134 return m_grid[0].size(); | 134 return m_grid[0].size(); |
| 135 } | 135 } |
| 136 size_t gridRowCount() const | 136 size_t gridRowCount() const |
| 137 { | 137 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 149 OrderIterator m_orderIterator; | 149 OrderIterator m_orderIterator; |
| 150 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 150 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
| 151 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 151 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 154 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
| 155 | 155 |
| 156 } // namespace WebCore | 156 } // namespace WebCore |
| 157 | 157 |
| 158 #endif // RenderGrid_h | 158 #endif // RenderGrid_h |
| OLD | NEW |