OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef LayoutNGBlockFlow_h | 5 #ifndef LayoutNGBlockFlow_h |
6 #define LayoutNGBlockFlow_h | 6 #define LayoutNGBlockFlow_h |
7 | 7 |
8 #include "core/layout/LayoutBlockFlow.h" | 8 #include "core/layout/LayoutBlockFlow.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // This overrides the default layout block algorithm to use Layout NG. | 12 // This overrides the default layout block algorithm to use Layout NG. |
13 class LayoutNGBlockFlow final : public LayoutBlockFlow { | 13 class LayoutNGBlockFlow final : public LayoutBlockFlow { |
14 public: | 14 public: |
15 explicit LayoutNGBlockFlow(Element*); | 15 explicit LayoutNGBlockFlow(Element*); |
16 ~LayoutNGBlockFlow() override = default; | 16 ~LayoutNGBlockFlow() override = default; |
17 | 17 |
| 18 void layoutBlock(bool relayoutChildren) override; |
| 19 |
18 private: | 20 private: |
19 bool isOfType(LayoutObjectType) const override; | 21 bool isOfType(LayoutObjectType) const override; |
20 }; | 22 }; |
21 | 23 |
22 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutNGBlockFlow, isLayoutNGBlockFlow()); | 24 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutNGBlockFlow, isLayoutNGBlockFlow()); |
23 | 25 |
24 } // namespace blink | 26 } // namespace blink |
25 | 27 |
26 #endif // LayoutNGBlockFlow_h | 28 #endif // LayoutNGBlockFlow_h |
OLD | NEW |