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

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

Issue 2921463004: [LayoutNG] PODify NGLayoutInputNode and sub-classes. (Closed)
Patch Set: new ng-bot expectations Created 3 years, 6 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/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;

Powered by Google App Engine
This is Rietveld 408576698