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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual void layoutBlock(bool relayoutChildren) OVERRIDE; | 46 virtual void layoutBlock(bool relayoutChildren) OVERRIDE; |
47 | 47 |
48 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE { return false;
} | 48 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE { return false;
} |
49 | 49 |
50 void dirtyGrid(); | 50 void dirtyGrid(); |
51 | 51 |
52 const Vector<LayoutUnit>& columnPositions() const { return m_columnPositions
; } | 52 const Vector<LayoutUnit>& columnPositions() const { return m_columnPositions
; } |
53 const Vector<LayoutUnit>& rowPositions() const { return m_rowPositions; } | 53 const Vector<LayoutUnit>& rowPositions() const { return m_rowPositions; } |
54 | 54 |
55 private: | 55 private: |
56 virtual bool isRenderGrid() const OVERRIDE { return true; } | 56 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type ==
RenderObjectRenderGrid || RenderBlock::isOfType(type); } |
57 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 57 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
58 virtual void computePreferredLogicalWidths() OVERRIDE; | 58 virtual void computePreferredLogicalWidths() OVERRIDE; |
59 | 59 |
60 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
OVERRIDE; | 60 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
OVERRIDE; |
61 void addChildToIndexesMap(RenderBox&); | 61 void addChildToIndexesMap(RenderBox&); |
62 virtual void removeChild(RenderObject*) OVERRIDE; | 62 virtual void removeChild(RenderObject*) OVERRIDE; |
63 | 63 |
64 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; | 64 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; |
65 | 65 |
66 bool explicitGridDidResize(const RenderStyle*) const; | 66 bool explicitGridDidResize(const RenderStyle*) const; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 OrderIterator m_orderIterator; | 151 OrderIterator m_orderIterator; |
152 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 152 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
153 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 153 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
154 }; | 154 }; |
155 | 155 |
156 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 156 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
157 | 157 |
158 } // namespace blink | 158 } // namespace blink |
159 | 159 |
160 #endif // RenderGrid_h | 160 #endif // RenderGrid_h |
OLD | NEW |