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

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

Issue 2195903002: Add Double{Size, Point, Rect} pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geometryPrettyPrinters2
Patch Set: Remove unnecessary String casts Created 4 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
Index: third_party/WebKit/Source/platform/geometry/DoubleRect.h
diff --git a/third_party/WebKit/Source/platform/geometry/DoubleRect.h b/third_party/WebKit/Source/platform/geometry/DoubleRect.h
index 1af7ac9f3142ab68768e23f50e5c6202fb85597c..311676943f77c1268d008fd686e7d4fdcd4980e5 100644
--- a/third_party/WebKit/Source/platform/geometry/DoubleRect.h
+++ b/third_party/WebKit/Source/platform/geometry/DoubleRect.h
@@ -61,9 +61,7 @@ public:
void scale(float s) { scale(s, s); }
void scale(float sx, float sy);
-#ifndef NDEBUG
String toString() const;
-#endif
private:
DoublePoint m_location;
@@ -77,6 +75,10 @@ PLATFORM_EXPORT IntRect enclosedIntRect(const DoubleRect&);
PLATFORM_EXPORT IntRect roundedIntRect(const DoubleRect&);
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const DoubleRect&, std::ostream*);
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698