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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h

Issue 2668183003: [LayoutNG] Make NG algorithms non-oilpan. (Closed)
Patch Set: fix win compile 2? 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698