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 |