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

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

Issue 2612103004: [ng_layout] Rename NGFragmentBase,NGFragment,NGPhysicalFragment (Closed)
Patch Set: CR: rename ifdef guards 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 NGPhysicalBoxFragment_h
6 #define NGPhysicalFragment_h 6 #define NGPhysicalBoxFragment_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_physical_fragment_base.h"
10 #include "core/layout/ng/ng_units.h" 9 #include "core/layout/ng/ng_units.h"
10 #include "core/layout/ng/ng_physical_fragment.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class NGBlockNode; 15 class NGBlockNode;
16 16
17 class CORE_EXPORT NGPhysicalFragment final : public NGPhysicalFragmentBase { 17 class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment {
18 public: 18 public:
19 // This modifies the passed-in children vector. 19 // This modifies the passed-in children vector.
20 NGPhysicalFragment( 20 NGPhysicalBoxFragment(
21 NGPhysicalSize size, 21 NGPhysicalSize size,
22 NGPhysicalSize overflow, 22 NGPhysicalSize overflow,
23 HeapVector<Member<const NGPhysicalFragmentBase>>& children, 23 HeapVector<Member<const NGPhysicalFragment>>& children,
24 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, 24 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants,
25 Vector<NGStaticPosition>& out_of_flow_positions, 25 Vector<NGStaticPosition>& out_of_flow_positions,
26 NGMarginStrut margin_strut); 26 NGMarginStrut margin_strut);
27 27
28 const HeapVector<Member<const NGPhysicalFragmentBase>>& Children() const { 28 const HeapVector<Member<const NGPhysicalFragment>>& Children() const {
29 return children_; 29 return children_;
30 } 30 }
31 31
32 NGMarginStrut MarginStrut() const { return margin_strut_; } 32 NGMarginStrut MarginStrut() const { return margin_strut_; }
33 33
34 DECLARE_TRACE_AFTER_DISPATCH(); 34 DECLARE_TRACE_AFTER_DISPATCH();
35 35
36 private: 36 private:
37 HeapVector<Member<const NGPhysicalFragmentBase>> children_; 37 HeapVector<Member<const NGPhysicalFragment>> children_;
38 NGMarginStrut margin_strut_; 38 NGMarginStrut margin_strut_;
39 }; 39 };
40 40
41 WILL_NOT_BE_EAGERLY_TRACED_CLASS(NGPhysicalFragment); 41 WILL_NOT_BE_EAGERLY_TRACED_CLASS(NGPhysicalBoxFragment);
42 42
43 DEFINE_TYPE_CASTS(NGPhysicalFragment, 43 DEFINE_TYPE_CASTS(NGPhysicalBoxFragment,
44 NGPhysicalFragmentBase, 44 NGPhysicalFragment,
45 fragment, 45 fragment,
46 fragment->Type() == NGPhysicalFragmentBase::kFragmentBox, 46 fragment->Type() == NGPhysicalFragment::kFragmentBox,
47 fragment.Type() == NGPhysicalFragmentBase::kFragmentBox); 47 fragment.Type() == NGPhysicalFragment::kFragmentBox);
48 48
49 } // namespace blink 49 } // namespace blink
50 50
51 #endif // NGPhysicalFragment_h 51 #endif // NGPhysicalBoxFragment_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698