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

Unified Diff: Source/platform/geometry/FloatRect.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/FloatQuad.h ('k') | Source/platform/geometry/FloatRoundedRect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatRect.h
diff --git a/Source/platform/geometry/FloatRect.h b/Source/platform/geometry/FloatRect.h
index 5e6d5e962916889afbfd634ec0f29054b608672e..25c2bca8cf87d9401d808a69dd7dac41fc1a5ca4 100644
--- a/Source/platform/geometry/FloatRect.h
+++ b/Source/platform/geometry/FloatRect.h
@@ -31,6 +31,7 @@
#include "platform/geometry/FloatRectOutsets.h"
#include "third_party/skia/include/core/SkRect.h"
#include "wtf/Vector.h"
+#include <iosfwd>
#if OS(MACOSX)
typedef struct CGRect CGRect;
@@ -245,6 +246,10 @@ PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&);
// Map supplied rect from srcRect to an equivalent rect in destRect.
PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, const FloatRect& destRect);
-}
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const FloatRect&, std::ostream*);
+
+} // namespace blink
#endif
« no previous file with comments | « Source/platform/geometry/FloatQuad.h ('k') | Source/platform/geometry/FloatRoundedRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698