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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 class LayoutGrid final : public LayoutBlock { | 50 class LayoutGrid final : public LayoutBlock { |
51 public: | 51 public: |
52 explicit LayoutGrid(Element*); | 52 explicit LayoutGrid(Element*); |
53 ~LayoutGrid() override; | 53 ~LayoutGrid() override; |
54 | 54 |
55 const char* name() const override { return "LayoutGrid"; } | 55 const char* name() const override { return "LayoutGrid"; } |
56 | 56 |
57 void layoutBlock(bool relayoutChildren) override; | 57 void layoutBlock(bool relayoutChildren) override; |
58 | 58 |
59 bool canCollapseAnonymousBlockChild() const override { return false; } | |
60 | |
61 void dirtyGrid(); | 59 void dirtyGrid(); |
62 | 60 |
63 const Vector<LayoutUnit>& columnPositions() const | 61 const Vector<LayoutUnit>& columnPositions() const |
64 { | 62 { |
65 ASSERT(!m_gridIsDirty); | 63 ASSERT(!m_gridIsDirty); |
66 return m_columnPositions; | 64 return m_columnPositions; |
67 } | 65 } |
68 | 66 |
69 const Vector<LayoutUnit>& rowPositions() const | 67 const Vector<LayoutUnit>& rowPositions() const |
70 { | 68 { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 235 |
238 size_t m_autoRepeatColumns { 0 }; | 236 size_t m_autoRepeatColumns { 0 }; |
239 size_t m_autoRepeatRows { 0 }; | 237 size_t m_autoRepeatRows { 0 }; |
240 }; | 238 }; |
241 | 239 |
242 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); | 240 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); |
243 | 241 |
244 } // namespace blink | 242 } // namespace blink |
245 | 243 |
246 #endif // LayoutGrid_h | 244 #endif // LayoutGrid_h |
OLD | NEW |