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

Unified Diff: third_party/WebKit/Source/platform/geometry/DoublePoint.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/geometry/DoublePoint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/geometry/DoublePoint.h
diff --git a/third_party/WebKit/Source/platform/geometry/DoublePoint.h b/third_party/WebKit/Source/platform/geometry/DoublePoint.h
index 5484ad95a2b47897ad796d81403dbbbf3d81b37b..b2a6e9c7cc8720844f8df97da203198e557bc98f 100644
--- a/third_party/WebKit/Source/platform/geometry/DoublePoint.h
+++ b/third_party/WebKit/Source/platform/geometry/DoublePoint.h
@@ -99,9 +99,7 @@ public:
return DoublePoint(m_x * scale, m_y * scale);
}
-#ifndef NDEBUG
String toString() const;
-#endif
private:
double m_x, m_y;
@@ -176,6 +174,10 @@ inline DoubleSize toDoubleSize(const DoublePoint& a)
return DoubleSize(a.x(), a.y());
}
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const DoublePoint&, std::ostream*);
+
} // namespace blink
#endif
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/geometry/DoublePoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698