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

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

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_floating_object.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h b/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h
index 8430c5ac6fcde0dd2dc02a94f756569aa5bf1882..d876eed11b198b255f684b09c04f7930fa05a244 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h
@@ -50,6 +50,11 @@ struct CORE_EXPORT NGFloatingObject : public RefCounted<NGFloatingObject> {
// would be attached.
LayoutUnit left_offset;
+ String ToString() const {
ikilpatrick 2017/03/17 21:25:24 I know we haven't done this previously but we shou
+ return String::format("Type: '%d' Fragment: '%s'", exclusion_type,
+ fragment->ToString().ascii().data());
+ }
+
private:
NGFloatingObject(const NGConstraintSpace* space,
const NGConstraintSpace* parent_space,

Powered by Google App Engine
This is Rietveld 408576698