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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h

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/FloatRoundedRect.h
diff --git a/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h b/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
index f3ccbbfdc548551a91ad5b0e39ad4589e858b54c..406f91ffa2c071067d6ca0c01aeb4b722a46b979 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
+++ b/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
@@ -86,10 +86,7 @@ public:
void includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge);
-#ifndef NDEBUG
- // Prints debugging information.
- void show() const;
-#endif
+ String toString() const;
private:
FloatSize m_topLeft;
@@ -152,11 +149,6 @@ public:
void adjustRadii();
bool isRenderable() const;
-#ifndef NDEBUG
- // Prints debugging information.
- void show() const;
-#endif
-
// Constrains the radii to be no more than the size of rect(); radii outside of this range are not
// defined.
// In addition, the radii of the corners are floored to the nearest integer.
@@ -166,6 +158,8 @@ public:
operator SkRRect() const;
+ String toString() const;
+
private:
FloatRect m_rect;
Radii m_radii;

Powered by Google App Engine
This is Rietveld 408576698