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

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

Issue 2836293004: [LayoutNG] Move NGInlineNode data to NGInlineNodeData. (Closed)
Patch Set: rebase. Created 3 years, 8 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/layout_ng_block_flow.h
diff --git a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h
index e7718f2a470ca3f212fe0c9a5c4a4e817da61843..0a8574b6e76e3da7845f7b5bfb503f5207fbecdb 100644
--- a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h
+++ b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h
@@ -5,13 +5,15 @@
#ifndef LayoutNGBlockFlow_h
#define LayoutNGBlockFlow_h
+#include "core/CoreExport.h"
#include "core/layout/LayoutBlockFlow.h"
+#include "core/layout/ng/inline/ng_inline_node_data.h"
#include "core/layout/ng/ng_block_node.h"
namespace blink {
// This overrides the default layout block algorithm to use Layout NG.
-class LayoutNGBlockFlow final : public LayoutBlockFlow {
+class CORE_EXPORT LayoutNGBlockFlow final : public LayoutBlockFlow {
public:
explicit LayoutNGBlockFlow(Element*);
~LayoutNGBlockFlow() override = default;
@@ -19,9 +21,13 @@ class LayoutNGBlockFlow final : public LayoutBlockFlow {
void UpdateBlockLayout(bool relayout_children) override;
NGBlockNode* BoxForTesting() const { return box_.Get(); }
+ NGInlineNodeData& GetNGInlineNodeData() const;
+ void ResetNGInlineNodeData();
+
private:
bool IsOfType(LayoutObjectType) const override;
+ std::unique_ptr<NGInlineNodeData> ng_inline_node_data_;
Persistent<NGBlockNode> box_;
};

Powered by Google App Engine
This is Rietveld 408576698