| Index: public/platform/WebDoublePoint.h
|
| diff --git a/public/platform/WebDoublePoint.h b/public/platform/WebDoublePoint.h
|
| index 8a98799136f655e3a7f8c44d3865be06dfc83581..d666e13379a0d23e55f6525c7c49c6c271ace9f8 100644
|
| --- a/public/platform/WebDoublePoint.h
|
| +++ b/public/platform/WebDoublePoint.h
|
| @@ -31,6 +31,12 @@
|
| #ifndef WebDoublePoint_h
|
| #define WebDoublePoint_h
|
|
|
| +#include "WebCommon.h"
|
| +
|
| +#if INSIDE_BLINK
|
| +#include "platform/geometry/DoublePoint.h"
|
| +#endif
|
| +
|
| namespace blink {
|
|
|
| struct WebDoublePoint {
|
| @@ -48,6 +54,20 @@ struct WebDoublePoint {
|
| , y(y)
|
| {
|
| }
|
| +
|
| +#if INSIDE_BLINK
|
| + WebDoublePoint(const DoublePoint& p)
|
| + : x(p.x())
|
| + , y(p.y())
|
| + {
|
| + }
|
| +
|
| + operator DoublePoint() const
|
| + {
|
| + return DoublePoint(x, y);
|
| + }
|
| +#endif
|
| +
|
| };
|
|
|
| inline bool operator==(const WebDoublePoint& a, const WebDoublePoint& b)
|
|
|