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

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

Issue 2731893003: Add ShowLayoutOpportunityTree to NGLayoutOpportunityIterator (Closed)
Patch Set: git rebase v2 Created 3 years, 9 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_opportunity_tree_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h
index 6e2c913b6db0183d521b75d459f548bb528ee63c..ea12337bc0895c4aef6281bbd81357d91fe1b5b2 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h
@@ -48,8 +48,20 @@ struct CORE_EXPORT NGLayoutOpportunityTreeNode
// The node is a leaf if it doesn't have an exclusion that splits it apart.
bool IsLeafNode() const { return !exclusion; }
+ String ToString() const;
+
DECLARE_TRACE();
};
+inline std::ostream& operator<<(std::ostream& stream,
+ const NGLayoutOpportunityTreeNode& value) {
+ return stream << value.ToString();
+}
+
+inline std::ostream& operator<<(std::ostream& out,
+ const NGLayoutOpportunityTreeNode* value) {
+ return out << (value ? value->ToString() : "(null)");
+}
+
} // namespace blink
#endif // NGLayoutOpportunityTreeNode_h

Powered by Google App Engine
This is Rietveld 408576698