Index: third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h |
index c4ad32ebfc38126bc205b3f35454629cb69509d9..1989c8ac7ef134c7fb659b7246be5f47dcaef5d9 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h |
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h |
@@ -11,6 +11,8 @@ |
namespace blink { |
+class LayoutBox; |
+ |
// Data which is required for inline nodes. |
struct CORE_EXPORT NGInlineNodeData { |
private: |
@@ -22,6 +24,13 @@ struct CORE_EXPORT NGInlineNodeData { |
String text_content_; |
Vector<NGInlineItem> items_; |
+ // next_sibling_ is only valid after NGInlineNode::PrepareLayout is called. |
+ // Calling NGInlineNode::NextSibling will trigger this. |
+ LayoutBox* next_sibling_; |
+ |
+ // start_inline_ must always be reset within the constructor of NGInlineNode. |
+ LayoutObject* start_inline_; |
+ |
// TODO(kojii): This should move to somewhere else when we move PrepareLayout |
// to the correct place. |
bool is_bidi_enabled_ = false; |