| Index: cc/stubs/IntRect.h
|
| diff --git a/cc/stubs/IntRect.h b/cc/stubs/IntRect.h
|
| index 1599967a88117225ba67c4b3e964d661b6205053..4714e878ac0ac50225138fca4f64431e02366af8 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 "cc/math/int_rect.h"
|
|
|
| namespace cc {
|
|
|
| @@ -34,6 +35,13 @@ public:
|
| {
|
|
|
| }
|
| +
|
| + explicit IntRect(ccmath::IntRect rect)
|
| + : WebCore::IntRect(rect.x(), rect.y(), rect.width(), rect.height())
|
| + {
|
| + }
|
| +
|
| + operator ccmath::IntRect() const { return ccmath::IntRect(x(), y(), width(), height()); }
|
| };
|
|
|
| }
|
|
|