| Index: third_party/WebKit/Source/core/geometry/DOMRect.h
|
| diff --git a/third_party/WebKit/Source/core/geometry/DOMRect.h b/third_party/WebKit/Source/core/geometry/DOMRect.h
|
| index 19bd8eba23583dea1ebc91425a3737c0b9ecd571..8bffda33b56af0baab43ca5839c3f497385925d7 100644
|
| --- a/third_party/WebKit/Source/core/geometry/DOMRect.h
|
| +++ b/third_party/WebKit/Source/core/geometry/DOMRect.h
|
| @@ -13,6 +13,8 @@ namespace blink {
|
|
|
| class DOMRect;
|
| class DOMRectInit;
|
| +class FloatRect;
|
| +class IntRect;
|
|
|
| class CORE_EXPORT DOMRect final : public DOMRectReadOnly {
|
| DEFINE_WRAPPERTYPEINFO();
|
| @@ -22,6 +24,8 @@ class CORE_EXPORT DOMRect final : public DOMRectReadOnly {
|
| double y = 0,
|
| double width = 0,
|
| double height = 0);
|
| + static DOMRect* Create(const IntRect& rect) { return new DOMRect(rect); }
|
| + static DOMRect* Create(const FloatRect& rect) { return new DOMRect(rect); }
|
| static DOMRect* fromRect(const DOMRectInit&);
|
|
|
| void setX(double x) { x_ = x; }
|
| @@ -31,6 +35,8 @@ class CORE_EXPORT DOMRect final : public DOMRectReadOnly {
|
|
|
| protected:
|
| DOMRect(double x, double y, double z, double w);
|
| + explicit DOMRect(const IntRect&);
|
| + explicit DOMRect(const FloatRect&);
|
| };
|
|
|
| } // namespace blink
|
|
|