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

Unified Diff: third_party/WebKit/Source/core/dom/DOMPoint.cpp

Issue 2586083002: Adding fromPoint to DOMPoint and DOMPointReadOnly interfaces following spec. (Closed)
Patch Set: Adding fromPoint to DOMPoint and DOMPointReadOnly interfaces following spec. Created 4 years 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/dom/DOMPoint.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMPoint.cpp b/third_party/WebKit/Source/core/dom/DOMPoint.cpp
index 1bb78667c5dbcac01646d27aae1e2a5c70eddf49..7b97ecff65136d8f22589126faf3bb2ad851259f 100644
--- a/third_party/WebKit/Source/core/dom/DOMPoint.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMPoint.cpp
@@ -16,6 +16,10 @@ DOMPoint* DOMPoint::create(double x, double y, double z, double w) {
return new DOMPoint(x, y, z, w);
}
+DOMPoint* DOMPoint::fromPoint(DOMPointInit& other) {
+ return new DOMPoint(other.x(), other.y(), other.z(), other.w());
+}
+
DOMPoint::DOMPoint(double x, double y, double z, double w)
: DOMPointReadOnly(x, y, z, w) {}

Powered by Google App Engine
This is Rietveld 408576698