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: third_party/WebKit/Source/platform/geometry/DoubleRect.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/DoubleRect.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/DoubleRect.cpp b/third_party/WebKit/Source/platform/geometry/DoubleRect.cpp
index 3ab0d000046186fd14c6ecd2ea3af698774fb933..93da536fa1206ddd4e42f46b1390cb8bd1282e18 100644
--- a/third_party/WebKit/Source/platform/geometry/DoubleRect.cpp
+++ b/third_party/WebKit/Source/platform/geometry/DoubleRect.cpp
@@ -7,7 +7,6 @@
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntRect.h"
#include "platform/geometry/LayoutRect.h"
-
#include "wtf/text/WTFString.h"
namespace blink {
@@ -55,11 +54,9 @@ void DoubleRect::scale(float sx, float sy)
m_size.setHeight(height() * sy);
}
-#ifndef NDEBUG
String DoubleRect::toString() const
{
return String::format("%s %s", location().toString().ascii().data(), size().toString().ascii().data());
}
-#endif
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698