Index: third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h |
index 0287a0dd5194120cc25f195d3820dd8b9c84825c..61b0bd1302bf838fef1f75832a7a882e524ba8cd 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h |
@@ -6,11 +6,12 @@ |
#define NGInlineLayoutAlgorithm_h |
#include "core/CoreExport.h" |
+#include "core/layout/ng/ng_break_token.h" |
#include "core/layout/ng/ng_layout_algorithm.h" |
+#include "platform/heap/Handle.h" |
namespace blink { |
-class NGBreakToken; |
class NGConstraintSpace; |
class NGInlineNode; |
class NGLineBuilder; |
@@ -34,22 +35,14 @@ class CORE_EXPORT NGTextLayoutAlgorithm : public NGLayoutAlgorithm { |
NGPhysicalFragment* Layout() override; |
void LayoutInline(NGLineBuilder*); |
- DECLARE_VIRTUAL_TRACE(); |
- |
private: |
- Member<NGInlineNode> inline_box_; |
- Member<NGConstraintSpace> constraint_space_; |
- Member<NGBreakToken> break_token_; |
+ Persistent<NGInlineNode> inline_box_; |
+ Persistent<NGConstraintSpace> constraint_space_; |
+ Persistent<NGBreakToken> break_token_; |
friend class NGInlineNodeTest; |
}; |
-DEFINE_TYPE_CASTS(NGTextLayoutAlgorithm, |
- NGLayoutAlgorithm, |
- algorithm, |
- algorithm->algorithmType() == kTextLayoutAlgorithm, |
- algorithm.algorithmType() == kTextLayoutAlgorithm); |
- |
} // namespace blink |
#endif // NGInlineLayoutAlgorithm_h |