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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 return m_gridItemsIndexesMap.get(layoutBox); | 80 return m_gridItemsIndexesMap.get(layoutBox); |
81 } | 81 } |
82 | 82 |
83 private: | 83 private: |
84 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); | 84 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); |
85 | 85 |
86 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); } | 86 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); } |
87 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; | 87 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; |
88 virtual void computePreferredLogicalWidths() override; | 88 virtual void computePreferredLogicalWidths() override; |
89 | 89 |
90 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0)
override; | 90 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nu
llptr) override; |
91 virtual void removeChild(LayoutObject*) override; | 91 virtual void removeChild(LayoutObject*) override; |
92 | 92 |
93 virtual void styleDidChange(StyleDifference, const ComputedStyle*) override; | 93 virtual void styleDidChange(StyleDifference, const ComputedStyle*) override; |
94 | 94 |
95 bool explicitGridDidResize(const ComputedStyle&) const; | 95 bool explicitGridDidResize(const ComputedStyle&) const; |
96 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; | 96 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; |
97 | 97 |
98 class GridIterator; | 98 class GridIterator; |
99 struct GridSizingData; | 99 struct GridSizingData; |
100 bool gridElementIsShrinkToFit(); | 100 bool gridElementIsShrinkToFit(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 OrderIterator m_orderIterator; | 192 OrderIterator m_orderIterator; |
193 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 193 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
194 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; | 194 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; |
195 }; | 195 }; |
196 | 196 |
197 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 197 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
198 | 198 |
199 } // namespace blink | 199 } // namespace blink |
200 | 200 |
201 #endif // LayoutGrid_h | 201 #endif // LayoutGrid_h |
OLD | NEW |