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 ResolveMaxContentMaximums, | 46 ResolveMaxContentMaximums, |
47 MaximizeTracks, | 47 MaximizeTracks, |
48 }; | 48 }; |
49 enum GridAxisPosition {GridAxisStart, GridAxisEnd, GridAxisCenter}; | 49 enum GridAxisPosition {GridAxisStart, GridAxisEnd, GridAxisCenter}; |
50 | 50 |
51 class LayoutGrid final : public LayoutBlock { | 51 class LayoutGrid final : public LayoutBlock { |
52 public: | 52 public: |
53 explicit LayoutGrid(Element*); | 53 explicit LayoutGrid(Element*); |
54 ~LayoutGrid() override; | 54 ~LayoutGrid() override; |
55 | 55 |
| 56 static LayoutGrid* createAnonymous(Document*); |
56 const char* name() const override { return "LayoutGrid"; } | 57 const char* name() const override { return "LayoutGrid"; } |
57 | 58 |
58 void layoutBlock(bool relayoutChildren) override; | 59 void layoutBlock(bool relayoutChildren) override; |
59 | 60 |
60 void dirtyGrid(); | 61 void dirtyGrid(); |
61 | 62 |
62 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons
t; | 63 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons
t; |
63 | 64 |
64 const Vector<LayoutUnit>& columnPositions() const | 65 const Vector<LayoutUnit>& columnPositions() const |
65 { | 66 { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 239 |
239 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; | 240 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; |
240 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; | 241 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; |
241 }; | 242 }; |
242 | 243 |
243 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 244 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
244 | 245 |
245 } // namespace blink | 246 } // namespace blink |
246 | 247 |
247 #endif // LayoutGrid_h | 248 #endif // LayoutGrid_h |
OLD | NEW |