diff options
Diffstat (limited to 'WebCore/platform/graphics/FloatRect.h')
-rw-r--r-- | WebCore/platform/graphics/FloatRect.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/FloatRect.h b/WebCore/platform/graphics/FloatRect.h index e387927..10ad838 100644 --- a/WebCore/platform/graphics/FloatRect.h +++ b/WebCore/platform/graphics/FloatRect.h @@ -59,6 +59,10 @@ class BRect; struct SkRect; #endif +#if PLATFORM(CAIRO) +typedef struct _cairo_rectangle cairo_rectangle_t; +#endif + namespace WebCore { #if PLATFORM(OPENVG) @@ -172,6 +176,11 @@ public: operator VGRect() const; #endif +#if PLATFORM(CAIRO) + FloatRect(const cairo_rectangle_t&); + operator cairo_rectangle_t() const; +#endif + private: FloatPoint m_location; FloatSize m_size; |