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 #include "core/layout/ng/layout_ng_block_flow.h" | 5 #include "core/layout/ng/layout_ng_block_flow.h" |
| 6 |
| 7 #include "core/layout/LayoutAnalyzer.h" |
6 #include "core/layout/ng/ng_constraint_space.h" | 8 #include "core/layout/ng/ng_constraint_space.h" |
7 #include "core/layout/LayoutAnalyzer.h" | |
8 #include "core/layout/ng/ng_fragment.h" | 9 #include "core/layout/ng/ng_fragment.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 LayoutNGBlockFlow::LayoutNGBlockFlow(Element* element) | 13 LayoutNGBlockFlow::LayoutNGBlockFlow(Element* element) |
13 : LayoutBlockFlow(element) {} | 14 : LayoutBlockFlow(element) {} |
14 | 15 |
15 bool LayoutNGBlockFlow::isOfType(LayoutObjectType type) const { | 16 bool LayoutNGBlockFlow::isOfType(LayoutObjectType type) const { |
16 return type == LayoutObjectNGBlockFlow || LayoutBlockFlow::isOfType(type); | 17 return type == LayoutObjectNGBlockFlow || LayoutBlockFlow::isOfType(type); |
17 } | 18 } |
(...skipping 26 matching lines...) Expand all Loading... |
44 computeLogicalHeight(logicalHeight(), logicalTop(), computedValues); | 45 computeLogicalHeight(logicalHeight(), logicalTop(), computedValues); |
45 setLogicalTop(computedValues.m_position); | 46 setLogicalTop(computedValues.m_position); |
46 } | 47 } |
47 | 48 |
48 for (auto& descendant : fragment->PhysicalFragment()->OutOfFlowDescendants()) | 49 for (auto& descendant : fragment->PhysicalFragment()->OutOfFlowDescendants()) |
49 descendant->UseOldOutOfFlowPositioning(); | 50 descendant->UseOldOutOfFlowPositioning(); |
50 clearNeedsLayout(); | 51 clearNeedsLayout(); |
51 } | 52 } |
52 | 53 |
53 } // namespace blink | 54 } // namespace blink |
OLD | NEW |