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

Unified Diff: Source/platform/geometry/FloatRect.h

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: Source/platform/geometry/FloatRect.h
diff --git a/Source/platform/geometry/FloatRect.h b/Source/platform/geometry/FloatRect.h
index 25c2bca8cf87d9401d808a69dd7dac41fc1a5ca4..275ed311d5f594cd531e8edb9b8650f6bf7b5812 100644
--- a/Source/platform/geometry/FloatRect.h
+++ b/Source/platform/geometry/FloatRect.h
@@ -60,7 +60,7 @@ public:
FloatRect(float x, float y, float width, float height)
: m_location(FloatPoint(x, y)), m_size(FloatSize(width, height)) { }
FloatRect(const IntRect&);
- FloatRect(const LayoutRect&);
+ explicit FloatRect(const LayoutRect&);
FloatRect(const SkRect&);
static FloatRect narrowPrecision(double x, double y, double width, double height);

Powered by Google App Engine
This is Rietveld 408576698