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

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

Issue 2282213002: [LayoutNG] Introduce NGPhysicalFragment and make NGFragment a 'view' (Closed)
Patch Set: address comments. 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 #ifndef NGConstraintSpace_h 5 #ifndef NGConstraintSpace_h
6 #define NGConstraintSpace_h 6 #define NGConstraintSpace_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_physical_constraint_space.h" 9 #include "core/layout/ng/ng_physical_constraint_space.h"
10 #include "core/layout/ng/ng_writing_mode.h" 10 #include "core/layout/ng/ng_writing_mode.h"
(...skipping 25 matching lines...) Expand all
36 const NGConstraintSpace* constraint_space) 36 const NGConstraintSpace* constraint_space)
37 : physical_space_(constraint_space->PhysicalSpace()), 37 : physical_space_(constraint_space->PhysicalSpace()),
38 writing_mode_(writing_mode) {} 38 writing_mode_(writing_mode) {}
39 39
40 // TODO: This should either be removed or also take an offset (if we merge 40 // TODO: This should either be removed or also take an offset (if we merge
41 // this with NGDerivedConstraintSpace). 41 // this with NGDerivedConstraintSpace).
42 NGConstraintSpace(const NGConstraintSpace& other, 42 NGConstraintSpace(const NGConstraintSpace& other,
43 NGLogicalSize container_size); 43 NGLogicalSize container_size);
44 44
45 NGPhysicalConstraintSpace* PhysicalSpace() const { return physical_space_; } 45 NGPhysicalConstraintSpace* PhysicalSpace() const { return physical_space_; }
46
46 NGWritingMode WritingMode() const { 47 NGWritingMode WritingMode() const {
47 return static_cast<NGWritingMode>(writing_mode_); 48 return static_cast<NGWritingMode>(writing_mode_);
48 } 49 }
49 50
50 // Size of the container. Used for the following three cases: 51 // Size of the container. Used for the following three cases:
51 // 1) Percentage resolution. 52 // 1) Percentage resolution.
52 // 2) Resolving absolute positions of children. 53 // 2) Resolving absolute positions of children.
53 // 3) Defining the threashold that triggers the presence of a scrollbar. Only 54 // 3) Defining the threashold that triggers the presence of a scrollbar. Only
54 // applies if the corresponding scrollbarTrigger flag has been set for the 55 // applies if the corresponding scrollbarTrigger flag has been set for the
55 // direction. 56 // direction.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 117
117 private: 118 private:
118 Persistent<NGConstraintSpace> constraint_space_; 119 Persistent<NGConstraintSpace> constraint_space_;
119 unsigned clear_; 120 unsigned clear_;
120 bool for_inline_or_bfc_; 121 bool for_inline_or_bfc_;
121 }; 122 };
122 123
123 } // namespace blink 124 } // namespace blink
124 125
125 #endif // NGConstraintSpace_h 126 #endif // NGConstraintSpace_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_box.cc ('k') | third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698