| 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 NGFragmentBuilder_h | 5 #ifndef NGFragmentBuilder_h |
| 6 #define NGFragmentBuilder_h | 6 #define NGFragmentBuilder_h |
| 7 | 7 |
| 8 #include "core/layout/ng/ng_break_token.h" | 8 #include "core/layout/ng/ng_break_token.h" |
| 9 #include "core/layout/ng/ng_constraint_space.h" | 9 #include "core/layout/ng/ng_constraint_space.h" |
| 10 #include "core/layout/ng/ng_floating_object.h" | 10 #include "core/layout/ng/ng_floating_object.h" |
| 11 #include "core/layout/ng/ng_physical_fragment.h" | 11 #include "core/layout/ng/ng_physical_fragment.h" |
| 12 #include "core/layout/ng/ng_units.h" | 12 #include "core/layout/ng/ng_units.h" |
| 13 #include "wtf/Allocator.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class NGLayoutResult; | 17 class NGLayoutResult; |
| 17 class NGPhysicalTextFragment; | 18 class NGPhysicalTextFragment; |
| 18 | 19 |
| 19 class CORE_EXPORT NGFragmentBuilder final { | 20 class CORE_EXPORT NGFragmentBuilder final { |
| 21 DISALLOW_NEW(); |
| 22 |
| 20 public: | 23 public: |
| 21 NGFragmentBuilder(NGPhysicalFragment::NGFragmentType, NGLayoutInputNode*); | 24 NGFragmentBuilder(NGPhysicalFragment::NGFragmentType, NGLayoutInputNode*); |
| 22 | 25 |
| 23 using WeakBoxList = PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>; | 26 using WeakBoxList = PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>; |
| 24 | 27 |
| 25 NGFragmentBuilder& SetWritingMode(NGWritingMode); | 28 NGFragmentBuilder& SetWritingMode(NGWritingMode); |
| 26 NGFragmentBuilder& SetDirection(TextDirection); | 29 NGFragmentBuilder& SetDirection(TextDirection); |
| 27 | 30 |
| 28 NGFragmentBuilder& SetInlineSize(LayoutUnit); | 31 NGFragmentBuilder& SetInlineSize(LayoutUnit); |
| 29 NGFragmentBuilder& SetBlockSize(LayoutUnit); | 32 NGFragmentBuilder& SetBlockSize(LayoutUnit); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 Vector<NGLogicalOffset> floating_object_offsets_; | 168 Vector<NGLogicalOffset> floating_object_offsets_; |
| 166 Vector<Persistent<NGFloatingObject>> positioned_floats_; | 169 Vector<Persistent<NGFloatingObject>> positioned_floats_; |
| 167 | 170 |
| 168 WTF::Optional<NGLogicalOffset> bfc_offset_; | 171 WTF::Optional<NGLogicalOffset> bfc_offset_; |
| 169 NGMarginStrut end_margin_strut_; | 172 NGMarginStrut end_margin_strut_; |
| 170 }; | 173 }; |
| 171 | 174 |
| 172 } // namespace blink | 175 } // namespace blink |
| 173 | 176 |
| 174 #endif // NGFragmentBuilder | 177 #endif // NGFragmentBuilder |
| OLD | NEW |