OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NGLegacyBlockLayoutAlgorithm_h | |
6 #define NGLegacyBlockLayoutAlgorithm_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "core/layout/ng/ng_block_node.h" | |
10 #include "core/layout/ng/ng_constraint_space.h" | |
11 #include "core/layout/ng/ng_layout_algorithm.h" | |
12 #include "wtf/RefPtr.h" | |
13 | |
14 namespace blink { | |
15 | |
16 // A class for legacy block layout (blocks that can't be handled by NG yet). | |
17 // Defers to the old layout method of the block | |
18 class CORE_EXPORT NGLegacyBlockLayoutAlgorithm : public NGLayoutAlgorithm { | |
19 public: | |
20 NGLegacyBlockLayoutAlgorithm(NGBlockNode*, const NGConstraintSpace*); | |
21 | |
22 NGPhysicalFragment* Layout() override; | |
23 | |
24 DECLARE_VIRTUAL_TRACE(); | |
25 | |
26 private: | |
27 Member<NGBlockNode> block_; | |
28 Member<const NGConstraintSpace> constraint_space_; | |
29 }; | |
30 } | |
31 | |
32 #endif // NGLegacyBlockLayoutAlgorithm_h | |
OLD | NEW |