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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); | 63 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); |
64 private: | 64 private: |
65 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); } | 65 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); } |
66 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; | 66 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const override; |
67 virtual void computePreferredLogicalWidths() override; | 67 virtual void computePreferredLogicalWidths() override; |
68 | 68 |
69 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0)
override; | 69 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0)
override; |
70 virtual void removeChild(LayoutObject*) override; | 70 virtual void removeChild(LayoutObject*) override; |
71 | 71 |
72 virtual void styleDidChange(StyleDifference, const LayoutStyle*) override; | 72 virtual void styleDidChange(StyleDifference, const ComputedStyle*) override; |
73 | 73 |
74 bool explicitGridDidResize(const LayoutStyle&) const; | 74 bool explicitGridDidResize(const ComputedStyle&) const; |
75 bool namedGridLinesDefinitionDidChange(const LayoutStyle&) const; | 75 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; |
76 | 76 |
77 class GridIterator; | 77 class GridIterator; |
78 struct GridSizingData; | 78 struct GridSizingData; |
79 bool gridElementIsShrinkToFit(); | 79 bool gridElementIsShrinkToFit(); |
80 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData
&, LayoutUnit& availableLogicalSpace); | 80 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData
&, LayoutUnit& availableLogicalSpace); |
81 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri
dLength&) const; | 81 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri
dLength&) const; |
82 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri
dLength&, LayoutUnit usedBreadth) const; | 82 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri
dLength&, LayoutUnit usedBreadth) const; |
83 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con
st Length&) const; | 83 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con
st Length&) const; |
84 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS
izingData&); | 84 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS
izingData&); |
85 | 85 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 OrderIterator m_orderIterator; | 171 OrderIterator m_orderIterator; |
172 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; | 172 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; |
173 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; | 173 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; |
174 }; | 174 }; |
175 | 175 |
176 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 176 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
177 | 177 |
178 } // namespace blink | 178 } // namespace blink |
179 | 179 |
180 #endif // LayoutGrid_h | 180 #endif // LayoutGrid_h |
OLD | NEW |