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 { |
(...skipping 27 matching lines...) Expand all Loading... |
38 width_direction_fragmentation_type_( | 38 width_direction_fragmentation_type_( |
39 other.width_direction_fragmentation_type_), | 39 other.width_direction_fragmentation_type_), |
40 height_direction_fragmentation_type_( | 40 height_direction_fragmentation_type_( |
41 other.height_direction_fragmentation_type_) {} | 41 other.height_direction_fragmentation_type_) {} |
42 | 42 |
43 void NGPhysicalConstraintSpace::AddExclusion(const NGExclusion, | 43 void NGPhysicalConstraintSpace::AddExclusion(const NGExclusion, |
44 unsigned options) { | 44 unsigned options) { |
45 // TODO(layout-ng): Implement. | 45 // TODO(layout-ng): Implement. |
46 } | 46 } |
47 | 47 |
48 DoublyLinkedList<const NGExclusion> NGPhysicalConstraintSpace::Exclusions( | 48 const DoublyLinkedList<const NGExclusion>* |
49 unsigned options) const { | 49 NGPhysicalConstraintSpace::Exclusions(unsigned options) const { |
50 DoublyLinkedList<const NGExclusion> exclusions; | 50 // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities |
51 // TODO(layout-ng): Implement. | 51 // should filter instead? |
52 return exclusions; | 52 return &exclusions_; |
53 } | 53 } |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
OLD | NEW |