| 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 #include "core/layout/ng/ng_legacy_block_layout_algorithm.h" | |
| 6 | |
| 7 #include "core/layout/ng/ng_physical_box_fragment.h" | |
| 8 | |
| 9 namespace blink { | |
| 10 | |
| 11 NGLegacyBlockLayoutAlgorithm::NGLegacyBlockLayoutAlgorithm( | |
| 12 NGBlockNode* block, | |
| 13 const NGConstraintSpace* constraint_space) | |
| 14 : NGLayoutAlgorithm(kLegacyBlockLayoutAlgorithm), | |
| 15 block_(block), | |
| 16 constraint_space_(constraint_space) {} | |
| 17 | |
| 18 NGPhysicalFragment* NGLegacyBlockLayoutAlgorithm::Layout() { | |
| 19 return block_->RunOldLayout(*constraint_space_); | |
| 20 } | |
| 21 | |
| 22 DEFINE_TRACE(NGLegacyBlockLayoutAlgorithm) { | |
| 23 NGLayoutAlgorithm::trace(visitor); | |
| 24 visitor->trace(block_); | |
| 25 visitor->trace(constraint_space_); | |
| 26 } | |
| 27 } | |
| OLD | NEW |