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

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

Issue 2347663002: [LayoutNG] Multi-exclusion aware layout opportunities (Closed)
Patch Set: Rebase w/HEAD Created 4 years, 3 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_iterator.cc ('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_physical_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
index 372aa34ee45da8333eb3da46f7c36d9b38dde9ba..ebd5ea9d68c1341a9c0cf775a181771b7abe2c14 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
@@ -41,12 +41,12 @@ struct NGExclusion {
LayoutUnit Right() const { return rect.size.width + rect.location.left; }
LayoutUnit Bottom() const { return rect.size.height + rect.location.top; }
LayoutUnit Left() const { return rect.location.left; }
- String toString() const {
- return String::format(
- "Exclusion: %0.2f, %0.2f, size: %0.2f, %0.2f (right %0.2f)",
- rect.location.left.toFloat(), rect.location.top.toFloat(),
- rect.size.width.toFloat(), rect.size.height.toFloat(),
- Right().toFloat());
+ String ToString() const {
+ return String::format("%s,%s %sx%s",
+ rect.location.left.toString().ascii().data(),
+ rect.location.top.toString().ascii().data(),
+ rect.size.width.toString().ascii().data(),
+ rect.size.height.toString().ascii().data());
}
NGPhysicalRect rect;
};
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698