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

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

Issue 2191233002: Add platform/geometry pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fewer redundant spaces, more toString tests 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/IntRect.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/IntRect.cpp b/third_party/WebKit/Source/platform/geometry/IntRect.cpp
index 0539c8e88aae271dc0373421969fb45d2cc611a1..f6fb193848f63bafd781b4fc6f5b46d3ce04665f 100644
--- a/third_party/WebKit/Source/platform/geometry/IntRect.cpp
+++ b/third_party/WebKit/Source/platform/geometry/IntRect.cpp
@@ -187,17 +187,11 @@ IntRect unionRectEvenIfEmpty(const Vector<IntRect>& rects)
return result;
}
-#ifndef NDEBUG
- // Prints the rect to the screen.
-void IntRect::show() const
-{
- LayoutRect(*this).show();
-}
-
String IntRect::toString() const
{
- return String::format("%s %s", location().toString().ascii().data(), size().toString().ascii().data());
+ return String::format("%s %s",
+ location().toString().ascii().data(),
+ size().toString().ascii().data());
}
-#endif
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/IntRect.h ('k') | third_party/WebKit/Source/platform/geometry/IntRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698