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

Unified Diff: third_party/WebKit/Source/platform/geometry/LayoutSize.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/LayoutSize.h
diff --git a/third_party/WebKit/Source/platform/geometry/LayoutSize.h b/third_party/WebKit/Source/platform/geometry/LayoutSize.h
index 2ed633320a879a9f1c6029fa5267f1033fc97b0d..1c51def6053305c7ec7ca82297a183daab281288 100644
--- a/third_party/WebKit/Source/platform/geometry/LayoutSize.h
+++ b/third_party/WebKit/Source/platform/geometry/LayoutSize.h
@@ -148,9 +148,7 @@ public:
return LayoutSize(m_width.fraction(), m_height.fraction());
}
-#ifndef NDEBUG
String toString() const;
-#endif
private:
LayoutUnit m_width, m_height;
@@ -232,6 +230,10 @@ inline LayoutSize roundedLayoutSize(const FloatSize& s)
return LayoutSize(s);
}
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const LayoutSize&, std::ostream*);
+
} // namespace blink
#endif // LayoutSize_h

Powered by Google App Engine
This is Rietveld 408576698