| 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/ng_out_of_flow_layout_part.h" | 5 #include "core/layout/ng/ng_out_of_flow_layout_part.h" |
| 6 | 6 |
| 7 #include "core/layout/ng/ng_absolute_utils.h" | 7 #include "core/layout/ng/ng_absolute_utils.h" |
| 8 #include "core/layout/ng/ng_block_node.h" | 8 #include "core/layout/ng/ng_block_node.h" |
| 9 #include "core/layout/ng/ng_constraint_space_builder.h" | 9 #include "core/layout/ng/ng_constraint_space_builder.h" |
| 10 #include "core/layout/ng/ng_fragment.h" |
| 10 #include "core/layout/ng/ng_length_utils.h" | 11 #include "core/layout/ng/ng_length_utils.h" |
| 11 #include "core/layout/ng/ng_physical_fragment.h" | 12 #include "core/layout/ng/ng_physical_fragment.h" |
| 12 #include "core/style/ComputedStyle.h" | 13 #include "core/style/ComputedStyle.h" |
| 13 #include "core/layout/ng/ng_fragment.h" | |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 NGOutOfFlowLayoutPart::NGOutOfFlowLayoutPart( | 17 NGOutOfFlowLayoutPart::NGOutOfFlowLayoutPart( |
| 18 PassRefPtr<const ComputedStyle> container_style, | 18 PassRefPtr<const ComputedStyle> container_style, |
| 19 NGLogicalSize container_size) { | 19 NGLogicalSize container_size) { |
| 20 contains_fixed_ = container_style->canContainFixedPositionObjects(); | 20 contains_fixed_ = container_style->canContainFixedPositionObjects(); |
| 21 contains_absolute_ = | 21 contains_absolute_ = |
| 22 container_style->canContainAbsolutePositionObjects() || contains_fixed_; | 22 container_style->canContainAbsolutePositionObjects() || contains_fixed_; |
| 23 // Initialize ConstraintSpace | 23 // Initialize ConstraintSpace |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return false; | 161 return false; |
| 162 } | 162 } |
| 163 | 163 |
| 164 DEFINE_TRACE(NGOutOfFlowLayoutPart) { | 164 DEFINE_TRACE(NGOutOfFlowLayoutPart) { |
| 165 visitor->trace(node_); | 165 visitor->trace(node_); |
| 166 visitor->trace(parent_space_); | 166 visitor->trace(parent_space_); |
| 167 visitor->trace(node_fragment_); | 167 visitor->trace(node_fragment_); |
| 168 visitor->trace(node_space_); | 168 visitor->trace(node_space_); |
| 169 } | 169 } |
| 170 } | 170 } |
| OLD | NEW |