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

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

Issue 1648573002: Transition to explicit constructors in LayoutUnit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moar tweaks! Created 4 years, 11 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 543de339a9e6635059e8ff5b7b0d10d9c4077324..92512a19f82a07ae81e8cd4b2c993af9b958468e 100644
--- a/third_party/WebKit/Source/platform/geometry/LayoutSize.h
+++ b/third_party/WebKit/Source/platform/geometry/LayoutSize.h
@@ -50,6 +50,7 @@ class LayoutSize {
public:
LayoutSize() { }
explicit LayoutSize(const IntSize& size) : m_width(size.width()), m_height(size.height()) { }
+ LayoutSize(int width, int height) : m_width(LayoutUnit(width)), m_height(LayoutUnit(height)) { }
LayoutSize(LayoutUnit width, LayoutUnit height) : m_width(width), m_height(height) { }
explicit LayoutSize(const FloatSize& size) : m_width(size.width()), m_height(size.height()) { }

Powered by Google App Engine
This is Rietveld 408576698