| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef RenderGrid_h | 26 #ifndef RenderGrid_h |
| 27 #define RenderGrid_h | 27 #define RenderGrid_h |
| 28 | 28 |
| 29 #include "RenderBlock.h" | 29 #include "RenderBlock.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class GridTrack; | 33 class GridTrack; |
| 34 | 34 |
| 35 class RenderGrid : public RenderBlock { | 35 class RenderGrid FINAL : public RenderBlock { |
| 36 public: | 36 public: |
| 37 RenderGrid(Element*); | 37 RenderGrid(Element*); |
| 38 virtual ~RenderGrid(); | 38 virtual ~RenderGrid(); |
| 39 | 39 |
| 40 virtual const char* renderName() const OVERRIDE; | 40 virtual const char* renderName() const OVERRIDE; |
| 41 | 41 |
| 42 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; | 42 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight
= 0) OVERRIDE; |
| 43 | 43 |
| 44 virtual bool avoidsFloats() const OVERRIDE { return true; } | 44 virtual bool avoidsFloats() const OVERRIDE { return true; } |
| 45 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE { return false;
} | 45 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE { return false;
} |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 return m_grid.size(); | 148 return m_grid.size(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 Vector<Vector<Vector<RenderBox*, 1> > > m_grid; | 151 Vector<Vector<Vector<RenderBox*, 1> > > m_grid; |
| 152 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; | 152 HashMap<const RenderBox*, GridCoordinate> m_gridItemCoordinate; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace WebCore | 155 } // namespace WebCore |
| 156 | 156 |
| 157 #endif // RenderGrid_h | 157 #endif // RenderGrid_h |
| OLD | NEW |