Index: ui/gfx/quad_f.h |
diff --git a/ui/gfx/quad_f.h b/ui/gfx/quad_f.h |
index 7e6bce10579c10ddf889efd102447f95f7303e26..a63dcfced1f707b99b31d40f9b51510bf2b4af5b 100644 |
--- a/ui/gfx/quad_f.h |
+++ b/ui/gfx/quad_f.h |
@@ -17,10 +17,18 @@ namespace gfx { |
// axis-aligned, unlike a Rect. |
class UI_EXPORT QuadF { |
public: |
- QuadF(); |
- QuadF(const PointF& p1, const PointF& p2, const PointF& p3, const PointF& p4); |
- explicit QuadF(const RectF& rect); |
- ~QuadF(); |
+ QuadF() {} |
+ QuadF(const PointF& p1, const PointF& p2, const PointF& p3, const PointF& p4) |
+ : p1_(p1), |
+ p2_(p2), |
+ p3_(p3), |
+ p4_(p4) {} |
+ |
+ explicit QuadF(const RectF& rect) |
+ : p1_(rect.x(), rect.y()), |
+ p2_(rect.right(), rect.y()), |
+ p3_(rect.right(), rect.bottom()), |
+ p4_(rect.x(), rect.bottom()) {} |
void operator=(const QuadF& quad); |
void operator=(const RectF& rect); |