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

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

Issue 2632523002: [LayoutNG] Initial support for multicol, introducing NGBlockBreakToken. (Closed)
Patch Set: Add TODO. Created 3 years, 11 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 NGPhysicalFragment_h 5 #ifndef NGPhysicalFragment_h
6 #define NGPhysicalFragment_h 6 #define NGPhysicalFragment_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/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return offset_.top; 54 return offset_.top;
55 } 55 }
56 56
57 // Should only be used by the parent fragement's layout. 57 // Should only be used by the parent fragement's layout.
58 void SetOffset(NGPhysicalOffset offset) { 58 void SetOffset(NGPhysicalOffset offset) {
59 DCHECK(!has_been_placed_); 59 DCHECK(!has_been_placed_);
60 offset_ = offset; 60 offset_ = offset;
61 has_been_placed_ = true; 61 has_been_placed_ = true;
62 } 62 }
63 63
64 NGBreakToken* BreakToken() const { return break_token_; }
65
64 const HeapLinkedHashSet<WeakMember<NGBlockNode>>& OutOfFlowDescendants() 66 const HeapLinkedHashSet<WeakMember<NGBlockNode>>& OutOfFlowDescendants()
65 const { 67 const {
66 return out_of_flow_descendants_; 68 return out_of_flow_descendants_;
67 } 69 }
68 70
69 const Vector<NGStaticPosition>& OutOfFlowPositions() const { 71 const Vector<NGStaticPosition>& OutOfFlowPositions() const {
70 return out_of_flow_positions_; 72 return out_of_flow_positions_;
71 } 73 }
72 74
73 DECLARE_TRACE_AFTER_DISPATCH(); 75 DECLARE_TRACE_AFTER_DISPATCH();
(...skipping 17 matching lines...) Expand all
91 HeapLinkedHashSet<WeakMember<NGBlockNode>> out_of_flow_descendants_; 93 HeapLinkedHashSet<WeakMember<NGBlockNode>> out_of_flow_descendants_;
92 Vector<NGStaticPosition> out_of_flow_positions_; 94 Vector<NGStaticPosition> out_of_flow_positions_;
93 95
94 unsigned type_ : 1; 96 unsigned type_ : 1;
95 unsigned has_been_placed_ : 1; 97 unsigned has_been_placed_ : 1;
96 }; 98 };
97 99
98 } // namespace blink 100 } // namespace blink
99 101
100 #endif // NGPhysicalFragment_h 102 #endif // NGPhysicalFragment_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698