OLD | NEW |
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_block_node.h" |
10 #include "core/layout/ng/ng_physical_fragment_base.h" | 10 #include "core/layout/ng/ng_physical_fragment_base.h" |
11 #include "platform/LayoutUnit.h" | |
12 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
13 #include "wtf/text/WTFString.h" | |
14 | 12 |
15 namespace blink { | 13 namespace blink { |
16 | 14 |
17 class CORE_EXPORT NGPhysicalTextFragment final : public NGPhysicalFragmentBase { | 15 class CORE_EXPORT NGPhysicalTextFragment final : public NGPhysicalFragmentBase { |
18 public: | 16 public: |
19 NGPhysicalTextFragment( | 17 NGPhysicalTextFragment( |
20 NGPhysicalSize size, | 18 NGPhysicalSize size, |
21 NGPhysicalSize overflow, | 19 NGPhysicalSize overflow, |
22 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, | 20 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, |
23 Vector<NGStaticPosition> out_of_flow_positions) | 21 Vector<NGStaticPosition> out_of_flow_positions) |
(...skipping 10 matching lines...) Expand all Loading... |
34 | 32 |
35 DEFINE_TYPE_CASTS(NGPhysicalTextFragment, | 33 DEFINE_TYPE_CASTS(NGPhysicalTextFragment, |
36 NGPhysicalFragmentBase, | 34 NGPhysicalFragmentBase, |
37 text, | 35 text, |
38 text->Type() == NGPhysicalFragmentBase::kFragmentText, | 36 text->Type() == NGPhysicalFragmentBase::kFragmentText, |
39 text.Type() == NGPhysicalFragmentBase::kFragmentText); | 37 text.Type() == NGPhysicalFragmentBase::kFragmentText); |
40 | 38 |
41 } // namespace blink | 39 } // namespace blink |
42 | 40 |
43 #endif // NGPhysicalTextFragment_h | 41 #endif // NGPhysicalTextFragment_h |
OLD | NEW |