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

Unified Diff: third_party/WebKit/Source/platform/geometry/DoubleSize.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/DoubleSize.h
diff --git a/third_party/WebKit/Source/platform/geometry/DoubleSize.h b/third_party/WebKit/Source/platform/geometry/DoubleSize.h
index 4fef562a0c64e46f74b01dad19bdef5fa02f50e3..33c6ef31909a7789c9cb94b3479dec3505933f1f 100644
--- a/third_party/WebKit/Source/platform/geometry/DoubleSize.h
+++ b/third_party/WebKit/Source/platform/geometry/DoubleSize.h
@@ -51,9 +51,7 @@ public:
this->scale(scale, scale);
}
-#ifndef NDEBUG
String toString() const;
-#endif
private:
double m_width, m_height;
@@ -113,6 +111,10 @@ inline FloatSize toFloatSize(const DoubleSize& p)
return FloatSize(p.width(), p.height());
}
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const DoubleSize&, std::ostream*);
+
} // namespace blink
#endif // DoubleSize_h

Powered by Google App Engine
This is Rietveld 408576698