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

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

Issue 1447273003: Make the FloatSize constructor from an IntSize explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/FloatSize.h
diff --git a/third_party/WebKit/Source/platform/geometry/FloatSize.h b/third_party/WebKit/Source/platform/geometry/FloatSize.h
index fdc3d4bb35dcb542fd0da0cf585be6aa679b28b9..45a96b24545c89ceb7b43af0f69aebf0a386e826 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatSize.h
+++ b/third_party/WebKit/Source/platform/geometry/FloatSize.h
@@ -50,7 +50,7 @@ class PLATFORM_EXPORT FloatSize {
public:
FloatSize() : m_width(0), m_height(0) { }
FloatSize(float width, float height) : m_width(width), m_height(height) { }
- FloatSize(const IntSize& size) : m_width(size.width()), m_height(size.height()) { }
+ explicit FloatSize(const IntSize& size) : m_width(size.width()), m_height(size.height()) { }
FloatSize(const SkSize& size) : m_width(size.width()), m_height(size.height()) { }
explicit FloatSize(const LayoutSize&);

Powered by Google App Engine
This is Rietveld 408576698