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

Unified Diff: Source/platform/geometry/FloatSize.h

Issue 1285413007: Unify geometry test printers in a test support target. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PrintTo instead of operator<< Created 5 years, 4 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 | « Source/platform/geometry/FloatRoundedRectTest.cpp ('k') | Source/platform/geometry/LayoutRect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatSize.h
diff --git a/Source/platform/geometry/FloatSize.h b/Source/platform/geometry/FloatSize.h
index f4b196a423ea41bd52ca32db8016ef011d4e7405..fdc3d4bb35dcb542fd0da0cf585be6aa679b28b9 100644
--- a/Source/platform/geometry/FloatSize.h
+++ b/Source/platform/geometry/FloatSize.h
@@ -31,6 +31,7 @@
#include "platform/geometry/IntPoint.h"
#include "third_party/skia/include/core/SkSize.h"
#include "wtf/MathExtras.h"
+#include <iosfwd>
#if OS(MACOSX)
typedef struct CGSize CGSize;
@@ -204,6 +205,10 @@ inline IntPoint flooredIntPoint(const FloatSize& p)
return IntPoint(clampTo<int>(floorf(p.width())), clampTo<int>(floorf(p.height())));
}
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const FloatSize&, std::ostream*);
+
} // namespace blink
#endif // FloatSize_h
« no previous file with comments | « Source/platform/geometry/FloatRoundedRectTest.cpp ('k') | Source/platform/geometry/LayoutRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698