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

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

Issue 2757603007: Move NG floats utility methods to the separate file (Closed)
Patch Set: 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_physical_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
index 5bf322177052f7cfee0579fa7e6d74baba3596ec..230e04d1794f874e9355ec7aebb006729d3a2a04 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
@@ -34,4 +34,10 @@ const ComputedStyle& NGPhysicalFragment::Style() const {
return layout_object_->styleRef();
}
+String NGPhysicalFragment::ToString() const {
+ return String::format("Type: '%d' Size: '%s' Offset: '%s' Placed: '%d'",
+ Type(), Size().ToString().ascii().data(),
+ Offset().ToString().ascii().data(), IsPlaced());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698