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" | 7 #include "core/layout/LayoutBox.h" |
8 #include "core/style/ComputedStyle.h" | 8 #include "core/style/ComputedStyle.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
| 12 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace( |
| 13 NGPhysicalSize container_size) |
| 14 : container_size_(container_size), |
| 15 fixed_width_(0), |
| 16 fixed_height_(0), |
| 17 width_direction_triggers_scrollbar_(0), |
| 18 height_direction_triggers_scrollbar_(0), |
| 19 width_direction_fragmentation_type_(FragmentNone), |
| 20 height_direction_fragmentation_type_(FragmentNone) {} |
| 21 |
12 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace() | 22 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace() |
13 : fixed_width_(0), | 23 : fixed_width_(0), |
14 fixed_height_(0), | 24 fixed_height_(0), |
15 width_direction_triggers_scrollbar_(0), | 25 width_direction_triggers_scrollbar_(0), |
16 height_direction_triggers_scrollbar_(0), | 26 height_direction_triggers_scrollbar_(0), |
17 width_direction_fragmentation_type_(FragmentNone), | 27 width_direction_fragmentation_type_(FragmentNone), |
18 height_direction_fragmentation_type_(FragmentNone) {} | 28 height_direction_fragmentation_type_(FragmentNone) {} |
19 | 29 |
20 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace( | 30 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace( |
21 const NGPhysicalConstraintSpace& other) | 31 const NGPhysicalConstraintSpace& other) |
(...skipping 14 matching lines...) Expand all Loading... |
36 } | 46 } |
37 | 47 |
38 DoublyLinkedList<const NGExclusion> NGPhysicalConstraintSpace::Exclusions( | 48 DoublyLinkedList<const NGExclusion> NGPhysicalConstraintSpace::Exclusions( |
39 unsigned options) const { | 49 unsigned options) const { |
40 DoublyLinkedList<const NGExclusion> exclusions; | 50 DoublyLinkedList<const NGExclusion> exclusions; |
41 // TODO(layout-ng): Implement. | 51 // TODO(layout-ng): Implement. |
42 return exclusions; | 52 return exclusions; |
43 } | 53 } |
44 | 54 |
45 } // namespace blink | 55 } // namespace blink |
OLD | NEW |