| Index: cc/stubs/FloatRect.h
|
| diff --git a/cc/stubs/FloatRect.h b/cc/stubs/FloatRect.h
|
| index 2eb03e2749e738ef9c94b80f3c89dcf882a3c419..9e009d91fe36e51a35206ed5226583078d14af7d 100644
|
| --- a/cc/stubs/FloatRect.h
|
| +++ b/cc/stubs/FloatRect.h
|
| @@ -13,6 +13,8 @@
|
| #else
|
| #include "third_party/WebKit/Source/WebCore/platform/graphics/FloatRect.h"
|
| #endif
|
| +#include <public/WebRect.h>
|
| +#include <public/WebFloatRect.h>
|
|
|
| namespace cc {
|
|
|
| @@ -49,6 +51,21 @@ public:
|
| :WebCore::FloatRect(rect)
|
| {
|
| }
|
| +
|
| + FloatRect(WebKit::WebRect rect)
|
| + : WebCore::FloatRect(rect.x, rect.y, rect.width, rect.height)
|
| + {
|
| + }
|
| +
|
| + FloatRect(WebKit::WebFloatRect rect)
|
| + : WebCore::FloatRect(rect.x, rect.y, rect.width, rect.height)
|
| + {
|
| + }
|
| +
|
| + operator WebKit::WebFloatRect() const
|
| + {
|
| + return WebKit::WebFloatRect(x(), y(), width(), height());
|
| + }
|
| };
|
|
|
| }
|
|
|