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

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

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.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
index 2a4538edaf010e6c33d6f46bf73d4eed75d62acd..b6650d654474992cf7d2ff57303466420a28d005 100644
--- a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
+++ b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
@@ -52,4 +52,13 @@ void LayoutNGBlockFlow::UpdateBlockLayout(bool relayout_children) {
ClearNeedsLayout();
}
+NGInlineNodeData& LayoutNGBlockFlow::GetNGInlineNodeData() const {
+ DCHECK(ng_inline_node_data_);
+ return *ng_inline_node_data_.get();
+}
+
+void LayoutNGBlockFlow::ResetNGInlineNodeData() {
+ ng_inline_node_data_ = WTF::MakeUnique<NGInlineNodeData>();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698