| Index: cc/stubs/IntRect.h
|
| diff --git a/cc/stubs/IntRect.h b/cc/stubs/IntRect.h
|
| index 1599967a88117225ba67c4b3e964d661b6205053..37a93e7453a3604bb10dc16156b41a52d8a0870d 100644
|
| --- a/cc/stubs/IntRect.h
|
| +++ b/cc/stubs/IntRect.h
|
| @@ -12,6 +12,7 @@
|
| #else
|
| #include "third_party/WebKit/Source/WebCore/platform/graphics/IntRect.h"
|
| #endif
|
| +#include <public/WebRect.h>
|
|
|
| namespace cc {
|
|
|
| @@ -32,7 +33,16 @@ public:
|
| IntRect(WebCore::IntRect rect)
|
| : WebCore::IntRect(rect.x(), rect.y(), rect.width(), rect.height())
|
| {
|
| + }
|
|
|
| + IntRect(WebKit::WebRect rect)
|
| + : WebCore::IntRect(rect.x, rect.y, rect.width, rect.height)
|
| + {
|
| + }
|
| +
|
| + operator WebKit::WebRect() const
|
| + {
|
| + return WebKit::WebRect(x(), y(), width(), height());
|
| }
|
| };
|
|
|
|
|