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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_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_inline_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h
index e37ba0dd2671d39f0cdafcf3806cea68ca5767e8..5a58fe51f1ed8a896660ef9e4893f309bb484d34 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.h
@@ -6,14 +6,15 @@
#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"
#include "wtf/RefPtr.h"
namespace blink {
class ComputedStyle;
class LayoutObject;
-class NGBreakToken;
class NGConstraintSpace;
class NGFragmentBuilder;
class NGInlineNode;
@@ -41,8 +42,6 @@ class CORE_EXPORT NGInlineLayoutAlgorithm : public NGLayoutAlgorithm {
NGPhysicalFragment* Layout() override;
- DECLARE_VIRTUAL_TRACE();
-
private:
// Read-only Getters.
const ComputedStyle& Style() const { return *style_; }
@@ -50,10 +49,10 @@ class CORE_EXPORT NGInlineLayoutAlgorithm : public NGLayoutAlgorithm {
NGConstraintSpace* CreateConstraintSpaceForChild(const NGInlineNode&) const;
RefPtr<const ComputedStyle> style_;
- Member<NGInlineNode> first_child_;
- Member<NGConstraintSpace> constraint_space_;
- Member<NGBreakToken> break_token_;
- Member<NGFragmentBuilder> builder_;
+ Persistent<NGInlineNode> first_child_;
+ Persistent<NGConstraintSpace> constraint_space_;
+ Persistent<NGBreakToken> break_token_;
+ Persistent<NGFragmentBuilder> builder_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698