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

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

Issue 2466913002: Reland of [LayoutNG] Remove simple constructors from NGPhysicalConstraintSpace. (Closed)
Patch Set: 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 #ifndef NGPhysicalConstraintSpace_h 5 #ifndef NGPhysicalConstraintSpace_h
6 #define NGPhysicalConstraintSpace_h 6 #define NGPhysicalConstraintSpace_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_units.h" 9 #include "core/layout/ng/ng_units.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 NGPhysicalConstraintSpace( 63 NGPhysicalConstraintSpace(
64 NGPhysicalSize container_size, 64 NGPhysicalSize container_size,
65 bool fixed_width, 65 bool fixed_width,
66 bool fixed_height, 66 bool fixed_height,
67 bool width_direction_triggers_scrollbar, 67 bool width_direction_triggers_scrollbar,
68 bool height_direction_triggers_scrollbar, 68 bool height_direction_triggers_scrollbar,
69 NGFragmentationType width_direction_fragmentation_type, 69 NGFragmentationType width_direction_fragmentation_type,
70 NGFragmentationType height_direction_fragmentation_type, 70 NGFragmentationType height_direction_fragmentation_type,
71 bool is_new_fc); 71 bool is_new_fc);
72 72
73 NGPhysicalConstraintSpace();
74 NGPhysicalConstraintSpace(NGPhysicalSize);
75
76 NGPhysicalSize ContainerSize() const { return container_size_; } 73 NGPhysicalSize ContainerSize() const { return container_size_; }
77 74
78 void AddExclusion(const NGExclusion*, unsigned options = 0); 75 void AddExclusion(const NGExclusion*, unsigned options = 0);
79 const HeapVector<Member<const NGExclusion>>& Exclusions( 76 const HeapVector<Member<const NGExclusion>>& Exclusions(
80 unsigned options = 0) const; 77 unsigned options = 0) const;
81 78
82 DEFINE_INLINE_TRACE() { visitor->trace(exclusions_); } 79 DEFINE_INLINE_TRACE() { visitor->trace(exclusions_); }
83 80
84 private: 81 private:
85 friend class NGConstraintSpace; 82 friend class NGConstraintSpace;
(...skipping 10 matching lines...) Expand all
96 // Whether the current constraint space is for the newly established 93 // Whether the current constraint space is for the newly established
97 // formatting Context 94 // formatting Context
98 unsigned is_new_fc_ : 1; 95 unsigned is_new_fc_ : 1;
99 96
100 HeapVector<Member<const NGExclusion>> exclusions_; 97 HeapVector<Member<const NGExclusion>> exclusions_;
101 }; 98 };
102 99
103 } // namespace blink 100 } // namespace blink
104 101
105 #endif // NGPhysicalConstraintSpace_h 102 #endif // NGPhysicalConstraintSpace_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698