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

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

Issue 2854993002: [LayoutNG] Add NGLayoutInputNode::ShowNodeTree (Closed)
Patch Set: Use forward declaration for LayoutObject 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/ng_layout_input_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
index 25b30c705c57aabd1a84595cda7872a8ac777d9b..1ca009956329ba579eea408887ba52609da840a3 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
@@ -40,16 +40,22 @@ class CORE_EXPORT NGLayoutInputNode
virtual NGLayoutInputNode* NextSibling() = 0;
// Returns the LayoutObject which is associated with this node.
- virtual LayoutObject* GetLayoutObject() = 0;
+ virtual LayoutObject* GetLayoutObject() const = 0;
virtual MinMaxContentSize ComputeMinMaxContentSize() = 0;
virtual const ComputedStyle& Style() const = 0;
+ virtual String ToString() const = 0;
+
NGLayoutInputNodeType Type() const {
return static_cast<NGLayoutInputNodeType>(type_);
}
+#ifndef NDEBUG
+ void ShowNodeTree() const;
+#endif
+
DEFINE_INLINE_VIRTUAL_TRACE() {}
protected:

Powered by Google App Engine
This is Rietveld 408576698