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

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

Issue 2446243003: [LayoutNG] Add NGConstraintSpaceBuilder class. (Closed)
Patch Set: it's -> its \o/ Created 4 years, 1 month 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 namespace blink { 7 namespace blink {
8 8
9 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace( 9 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace(
10 NGPhysicalSize container_size,
11 bool fixed_width,
12 bool fixed_height,
13 bool width_direction_triggers_scrollbar,
14 bool height_direction_triggers_scrollbar,
15 NGFragmentationType width_direction_fragmentation_type,
16 NGFragmentationType height_direction_fragmentation_type,
17 bool is_new_fc)
18 : container_size_(container_size),
19 fixed_width_(fixed_width),
20 fixed_height_(fixed_height),
21 width_direction_triggers_scrollbar_(width_direction_triggers_scrollbar),
22 height_direction_triggers_scrollbar_(height_direction_triggers_scrollbar),
23 width_direction_fragmentation_type_(width_direction_fragmentation_type),
24 height_direction_fragmentation_type_(height_direction_fragmentation_type),
25 is_new_fc_(is_new_fc) {}
26
27 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace(
10 NGPhysicalSize container_size) 28 NGPhysicalSize container_size)
11 : container_size_(container_size), 29 : container_size_(container_size),
12 fixed_width_(0), 30 fixed_width_(0),
13 fixed_height_(0), 31 fixed_height_(0),
14 width_direction_triggers_scrollbar_(0), 32 width_direction_triggers_scrollbar_(0),
15 height_direction_triggers_scrollbar_(0), 33 height_direction_triggers_scrollbar_(0),
16 width_direction_fragmentation_type_(FragmentNone), 34 width_direction_fragmentation_type_(FragmentNone),
17 height_direction_fragmentation_type_(FragmentNone) {} 35 height_direction_fragmentation_type_(FragmentNone) {}
18 36
19 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace() 37 NGPhysicalConstraintSpace::NGPhysicalConstraintSpace()
(...skipping 10 matching lines...) Expand all
30 } 48 }
31 49
32 const HeapVector<Member<const NGExclusion>>& 50 const HeapVector<Member<const NGExclusion>>&
33 NGPhysicalConstraintSpace::Exclusions(unsigned options) const { 51 NGPhysicalConstraintSpace::Exclusions(unsigned options) const {
34 // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities 52 // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities
35 // should filter instead? 53 // should filter instead?
36 return exclusions_; 54 return exclusions_;
37 } 55 }
38 56
39 } // namespace blink 57 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698