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

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

Issue 2546353002: Move oof-descendants to NGPhysicalFragmentBase (Closed)
Patch Set: fix win build problem Created 4 years 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 NGPhysicalTextFragment_h 5 #ifndef NGPhysicalTextFragment_h
6 #define NGPhysicalTextFragment_h 6 #define NGPhysicalTextFragment_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_block_node.h"
9 #include "core/layout/ng/ng_physical_fragment_base.h" 10 #include "core/layout/ng/ng_physical_fragment_base.h"
10 #include "platform/LayoutUnit.h" 11 #include "platform/LayoutUnit.h"
11 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
12 #include "wtf/text/WTFString.h" 13 #include "wtf/text/WTFString.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class CORE_EXPORT NGPhysicalTextFragment final : public NGPhysicalFragmentBase { 17 class CORE_EXPORT NGPhysicalTextFragment final : public NGPhysicalFragmentBase {
17 public: 18 public:
18 NGPhysicalTextFragment(NGPhysicalSize size, NGPhysicalSize overflow) 19 NGPhysicalTextFragment(
19 : NGPhysicalFragmentBase(size, overflow, kFragmentText) {} 20 NGPhysicalSize size,
21 NGPhysicalSize overflow,
22 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants,
23 Vector<NGStaticPosition> out_of_flow_positions)
24 : NGPhysicalFragmentBase(size,
25 overflow,
26 kFragmentText,
27 out_of_flow_descendants,
28 out_of_flow_positions) {}
20 29
21 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { 30 DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
22 NGPhysicalFragmentBase::traceAfterDispatch(visitor); 31 NGPhysicalFragmentBase::traceAfterDispatch(visitor);
23 } 32 }
24 }; 33 };
25 34
26 DEFINE_TYPE_CASTS(NGPhysicalTextFragment, 35 DEFINE_TYPE_CASTS(NGPhysicalTextFragment,
27 NGPhysicalFragmentBase, 36 NGPhysicalFragmentBase,
28 text, 37 text,
29 text->Type() == NGPhysicalFragmentBase::kFragmentText, 38 text->Type() == NGPhysicalFragmentBase::kFragmentText,
30 text.Type() == NGPhysicalFragmentBase::kFragmentText); 39 text.Type() == NGPhysicalFragmentBase::kFragmentText);
31 40
32 } // namespace blink 41 } // namespace blink
33 42
34 #endif // NGPhysicalTextFragment_h 43 #endif // NGPhysicalTextFragment_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698