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 private: | 18 private: |
19 bool isOfType(LayoutObjectType) const override; | 19 bool isOfType(LayoutObjectType) const override; |
20 }; | 20 }; |
21 | 21 |
22 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutNGBlockFlow, isLayoutNGBlockFlow()); | 22 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutNGBlockFlow, isLayoutNGBlockFlow()); |
23 | 23 |
24 } // namespace blink | 24 } // namespace blink |
25 | 25 |
26 #endif // LayoutNGBlockFlow_h | 26 #endif // LayoutNGBlockFlow_h |
OLD | NEW |