| 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 15 matching lines...) Expand all Loading... |
| 26 #ifndef RenderGrid_h | 26 #ifndef RenderGrid_h |
| 27 #define RenderGrid_h | 27 #define RenderGrid_h |
| 28 | 28 |
| 29 #include "core/rendering/RenderBlock.h" | 29 #include "core/rendering/RenderBlock.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class GridTrack; | 33 class GridTrack; |
| 34 | 34 |
| 35 enum GridPositionSide { | 35 enum GridPositionSide { |
| 36 StartSide, | 36 ColumnStartSide, |
| 37 EndSide, | 37 ColumnEndSide, |
| 38 BeforeSide, | 38 RowStartSide, |
| 39 AfterSide | 39 RowEndSide |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 class RenderGrid FINAL : public RenderBlock { | 42 class RenderGrid FINAL : public RenderBlock { |
| 43 public: | 43 public: |
| 44 RenderGrid(Element*); | 44 RenderGrid(Element*); |
| 45 virtual ~RenderGrid(); | 45 virtual ~RenderGrid(); |
| 46 | 46 |
| 47 virtual const char* renderName() const OVERRIDE; | 47 virtual const char* renderName() const OVERRIDE; |
| 48 | 48 |
| 49 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; | 49 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 return m_grid.size(); | 159 return m_grid.size(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 Vector<Vector<Vector<RenderBox*, 1> > > m_grid; | 162 Vector<Vector<Vector<RenderBox*, 1> > > m_grid; |
| 163 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; | 163 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace WebCore | 166 } // namespace WebCore |
| 167 | 167 |
| 168 #endif // RenderGrid_h | 168 #endif // RenderGrid_h |
| OLD | NEW |