| 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*); | |
| 57 const char* name() const override { return "LayoutGrid"; } | 56 const char* name() const override { return "LayoutGrid"; } |
| 58 | 57 |
| 59 void layoutBlock(bool relayoutChildren) override; | 58 void layoutBlock(bool relayoutChildren) override; |
| 60 | 59 |
| 61 void dirtyGrid(); | 60 void dirtyGrid(); |
| 62 | 61 |
| 63 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons
t; | 62 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons
t; |
| 64 | 63 |
| 65 const Vector<LayoutUnit>& columnPositions() const | 64 const Vector<LayoutUnit>& columnPositions() const |
| 66 { | 65 { |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 240 |
| 242 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; | 241 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; |
| 243 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; | 242 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; |
| 244 }; | 243 }; |
| 245 | 244 |
| 246 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 245 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 247 | 246 |
| 248 } // namespace blink | 247 } // namespace blink |
| 249 | 248 |
| 250 #endif // LayoutGrid_h | 249 #endif // LayoutGrid_h |
| OLD | NEW |