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_physical_constraint_space.h" | 5 #include "core/layout/ng/ng_physical_constraint_space.h" |
6 | 6 |
7 #include "core/layout/LayoutBox.h" | |
8 #include "core/style/ComputedStyle.h" | |
9 | |
10 namespace blink { | 7 namespace blink { |
11 | 8 |
12 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace( | 9 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace( |
13 NGPhysicalSize container_size) | 10 NGPhysicalSize container_size) |
14 : container_size_(container_size), | 11 : container_size_(container_size), |
15 fixed_width_(0), | 12 fixed_width_(0), |
16 fixed_height_(0), | 13 fixed_height_(0), |
17 width_direction_triggers_scrollbar_(0), | 14 width_direction_triggers_scrollbar_(0), |
18 height_direction_triggers_scrollbar_(0), | 15 height_direction_triggers_scrollbar_(0), |
19 width_direction_fragmentation_type_(FragmentNone), | 16 width_direction_fragmentation_type_(FragmentNone), |
(...skipping 26 matching lines...) Expand all Loading... |
46 } | 43 } |
47 | 44 |
48 const Vector<NGExclusion>& NGPhysicalConstraintSpace::Exclusions( | 45 const Vector<NGExclusion>& NGPhysicalConstraintSpace::Exclusions( |
49 unsigned options) const { | 46 unsigned options) const { |
50 // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities | 47 // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities |
51 // should filter instead? | 48 // should filter instead? |
52 return exclusions_; | 49 return exclusions_; |
53 } | 50 } |
54 | 51 |
55 } // namespace blink | 52 } // namespace blink |
OLD | NEW |