Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: third_party/WebKit/Source/core/geometry/DOMRect.cpp

Issue 2869803003: Change from ClientRect to DOMRect.
Patch Set: Change from ClientRect to DOMRect. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698