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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.cc
index aa211bf5adf7bf24571ceeb3d842638201717e4c..49b04cd0ea746d617c0d4040726f8e4458d927f8 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.cc
@@ -20,6 +20,13 @@ NGLayoutOpportunityTreeNode::NGLayoutOpportunityTreeNode(
exclusion_edge(exclusion_edge),
exclusion(nullptr) {}
+String NGLayoutOpportunityTreeNode::ToString() const {
+ return String::format(
+ "Opportunity: '%s' Exclusion: '%s'",
+ opportunity.ToString().ascii().data(),
+ exclusion ? exclusion->ToString().ascii().data() : "null");
+}
+
DEFINE_TRACE(NGLayoutOpportunityTreeNode) {
visitor->trace(left);
visitor->trace(bottom);
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698