| Index: third_party/WebKit/Source/core/geometry/DOMRect.cpp
|
| diff --git a/third_party/WebKit/Source/core/geometry/DOMRect.cpp b/third_party/WebKit/Source/core/geometry/DOMRect.cpp
|
| index bf1a2e904258b00e246c0700692fbeed1ee155b2..4779cd76e4e516d8e08d90d46a2ed7a35948d6f5 100644
|
| --- a/third_party/WebKit/Source/core/geometry/DOMRect.cpp
|
| +++ b/third_party/WebKit/Source/core/geometry/DOMRect.cpp
|
| @@ -5,6 +5,8 @@
|
| #include "core/geometry/DOMRect.h"
|
|
|
| #include "core/geometry/DOMRectInit.h"
|
| +#include "platform/geometry/FloatRect.h"
|
| +#include "platform/geometry/IntRect.h"
|
|
|
| namespace blink {
|
|
|
| @@ -19,4 +21,10 @@ DOMRect* DOMRect::fromRect(const DOMRectInit& other) {
|
| DOMRect::DOMRect(double x, double y, double width, double height)
|
| : DOMRectReadOnly(x, y, width, height) {}
|
|
|
| +DOMRect::DOMRect(const IntRect& rect)
|
| + : DOMRectReadOnly(rect.X(), rect.Y(), rect.Width(), rect.Height()) {}
|
| +
|
| +DOMRect::DOMRect(const FloatRect& rect)
|
| + : DOMRectReadOnly(rect.X(), rect.Y(), rect.Width(), rect.Height()) {}
|
| +
|
| } // namespace blink
|
|
|