| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 245 |
| 245 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; | 246 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; |
| 246 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; | 247 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; |
| 247 }; | 248 }; |
| 248 | 249 |
| 249 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 250 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
| 250 | 251 |
| 251 } // namespace blink | 252 } // namespace blink |
| 252 | 253 |
| 253 #endif // LayoutGrid_h | 254 #endif // LayoutGrid_h |
| OLD | NEW |