| Index: cc/stubs/FloatRect.h
|
| diff --git a/cc/stubs/FloatRect.h b/cc/stubs/FloatRect.h
|
| index 2eb03e2749e738ef9c94b80f3c89dcf882a3c419..f5a935774a88f6a2faf90890a67e6801c77f89ee 100644
|
| --- a/cc/stubs/FloatRect.h
|
| +++ b/cc/stubs/FloatRect.h
|
| @@ -13,6 +13,7 @@
|
| #else
|
| #include "third_party/WebKit/Source/WebCore/platform/graphics/FloatRect.h"
|
| #endif
|
| +#include "cc/math/float_rect.h"
|
|
|
| namespace cc {
|
|
|
| @@ -49,6 +50,13 @@ public:
|
| :WebCore::FloatRect(rect)
|
| {
|
| }
|
| +
|
| + explicit FloatRect(ccmath::FloatRect rect)
|
| + : WebCore::FloatRect(rect.x(), rect.y(), rect.width(), rect.height())
|
| + {
|
| + }
|
| +
|
| + operator ccmath::FloatRect() const { return ccmath::FloatRect(x(), y(), width(), height()); }
|
| };
|
|
|
| }
|
|
|