Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc

Issue 2298273002: Initial exclusion aware layout opportunities implementation (Closed)
Patch Set: Initial exclusion aware layout opportunities implementation Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
33 fixed_height_(other.fixed_height_), 33 fixed_height_(other.fixed_height_),
34 width_direction_triggers_scrollbar_( 34 width_direction_triggers_scrollbar_(
35 other.width_direction_triggers_scrollbar_), 35 other.width_direction_triggers_scrollbar_),
36 height_direction_triggers_scrollbar_( 36 height_direction_triggers_scrollbar_(
37 other.height_direction_triggers_scrollbar_), 37 other.height_direction_triggers_scrollbar_),
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 exclusion,
44 unsigned options) { 44 unsigned options) {
45 // TODO(layout-ng): Implement. 45 exclusions_.append(exclusion);
46 } 46 }
47 47
48 const DoublyLinkedList<const NGExclusion>* 48 const Vector<NGExclusion>& NGPhysicalConstraintSpace::Exclusions(
49 NGPhysicalConstraintSpace::Exclusions(unsigned options) const { 49 unsigned options) const {
50 // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities 50 // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities
51 // should filter instead? 51 // should filter instead?
52 return &exclusions_; 52 return exclusions_;
53 } 53 }
54 54
55 } // namespace blink 55 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698