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

Unified Diff: third_party/WebKit/Source/platform/geometry/LayoutSize.h

Issue 2191233002: Add platform/geometry pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust tests to work around uninteresting cross-platform differences Created 4 years, 5 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/platform/geometry/LayoutSize.h
diff --git a/third_party/WebKit/Source/platform/geometry/LayoutSize.h b/third_party/WebKit/Source/platform/geometry/LayoutSize.h
index 2ed633320a879a9f1c6029fa5267f1033fc97b0d..4461061f6aeab0a52c3e7940dedf60108ade7c70 100644
--- a/third_party/WebKit/Source/platform/geometry/LayoutSize.h
+++ b/third_party/WebKit/Source/platform/geometry/LayoutSize.h
@@ -38,6 +38,7 @@
#include "platform/geometry/IntSize.h"
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
+#include <iosfwd>
namespace blink {
@@ -148,10 +149,6 @@ public:
return LayoutSize(m_width.fraction(), m_height.fraction());
}
-#ifndef NDEBUG
- String toString() const;
-#endif
-
private:
LayoutUnit m_width, m_height;
};
@@ -232,6 +229,8 @@ inline LayoutSize roundedLayoutSize(const FloatSize& s)
return LayoutSize(s);
}
+PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const LayoutSize&);
+
} // namespace blink
#endif // LayoutSize_h

Powered by Google App Engine
This is Rietveld 408576698