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

Unified Diff: third_party/WebKit/Source/platform/geometry/DoublePoint.cpp

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/DoublePoint.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/DoublePoint.cpp b/third_party/WebKit/Source/platform/geometry/DoublePoint.cpp
index bcbc4542dc6174eb5e0228e1be8464154d073d77..563c557dfaf8995db35df2c2026bf84f7b8d98ba 100644
--- a/third_party/WebKit/Source/platform/geometry/DoublePoint.cpp
+++ b/third_party/WebKit/Source/platform/geometry/DoublePoint.cpp
@@ -5,7 +5,6 @@
#include "platform/geometry/DoublePoint.h"
#include "platform/geometry/FloatSize.h"
#include "platform/geometry/LayoutPoint.h"
-
#include "wtf/text/WTFString.h"
namespace blink {
@@ -21,11 +20,9 @@ DoublePoint::DoublePoint(const FloatSize& size)
{
}
-#ifndef NDEBUG
String DoublePoint::toString() const
{
- return String::format("%f,%f", x(), y());
+ return String::format("%lg,%lg", x(), y());
}
-#endif
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/DoublePoint.h ('k') | third_party/WebKit/Source/platform/geometry/DoubleRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698