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

Unified Diff: Source/platform/geometry/LayoutRect.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/FloatSize.h ('k') | Source/platform/platform.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/LayoutRect.h
diff --git a/Source/platform/geometry/LayoutRect.h b/Source/platform/geometry/LayoutRect.h
index bfe86fc69df82597a74d943458c7383b035a559e..7854cba0e38329ba678f01fd392604a0cd9c5344 100644
--- a/Source/platform/geometry/LayoutRect.h
+++ b/Source/platform/geometry/LayoutRect.h
@@ -35,6 +35,7 @@
#include "platform/geometry/LayoutPoint.h"
#include "platform/geometry/LayoutRectOutsets.h"
#include "wtf/Vector.h"
+#include <iosfwd>
namespace blink {
@@ -251,6 +252,10 @@ inline IntRect pixelSnappedIntRect(LayoutPoint location, LayoutSize size)
return IntRect(roundedIntPoint(location), pixelSnappedIntSize(size, location));
}
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const LayoutRect&, std::ostream*);
+
} // namespace blink
#endif // LayoutRect_h
« no previous file with comments | « Source/platform/geometry/FloatSize.h ('k') | Source/platform/platform.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698