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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 int paintIndexForGridItem(const RenderBox* renderBox) { return m_gridItemsIn
dexesMap.get(renderBox); } | 59 int paintIndexForGridItem(const RenderBox* renderBox) { return m_gridItemsIn
dexesMap.get(renderBox); } |
60 | 60 |
61 bool gridIsDirty() const { return m_gridIsDirty; } | 61 bool gridIsDirty() const { return m_gridIsDirty; } |
62 | 62 |
63 private: | 63 private: |
64 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderGrid || RenderBlock::isOfType(type); } | 64 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectRenderGrid || RenderBlock::isOfType(type); } |
65 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; | 65 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; |
66 virtual void computePreferredLogicalWidths() override; | 66 virtual void computePreferredLogicalWidths() override; |
67 | 67 |
68 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; | 68 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; |
69 void addChildToIndexesMap(RenderBox&); | |
70 virtual void removeChild(RenderObject*) override; | 69 virtual void removeChild(RenderObject*) override; |
71 | 70 |
72 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; | 71 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; |
73 | 72 |
74 bool explicitGridDidResize(const RenderStyle*) const; | 73 bool explicitGridDidResize(const RenderStyle*) const; |
75 bool namedGridLinesDefinitionDidChange(const RenderStyle*) const; | 74 bool namedGridLinesDefinitionDidChange(const RenderStyle*) const; |
76 | 75 |
77 class GridIterator; | 76 class GridIterator; |
78 struct GridSizingData; | 77 struct GridSizingData; |
79 bool gridElementIsShrinkToFit(); | 78 bool gridElementIsShrinkToFit(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 OrderIterator m_orderIterator; | 166 OrderIterator m_orderIterator; |
168 Vector<RenderBox*> m_gridItemsOverflowingGridArea; | 167 Vector<RenderBox*> m_gridItemsOverflowingGridArea; |
169 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; | 168 HashMap<const RenderBox*, size_t> m_gridItemsIndexesMap; |
170 }; | 169 }; |
171 | 170 |
172 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); | 171 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderGrid, isRenderGrid()); |
173 | 172 |
174 } // namespace blink | 173 } // namespace blink |
175 | 174 |
176 #endif // RenderGrid_h | 175 #endif // RenderGrid_h |
OLD | NEW |