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

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

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.h
diff --git a/third_party/WebKit/Source/core/dom/DOMPoint.h b/third_party/WebKit/Source/core/dom/DOMPoint.h
index 695b642a62481dac9637a0dcd6ff409658d01fe7..e532c9a26a3a35f6f034fc5934318f1926c1ae53 100644
--- a/third_party/WebKit/Source/core/dom/DOMPoint.h
+++ b/third_party/WebKit/Source/core/dom/DOMPoint.h
@@ -18,6 +18,7 @@ class CORE_EXPORT DOMPoint final : public DOMPointReadOnly {
public:
static DOMPoint* create(const DOMPointInit&);
static DOMPoint* create(double x, double y, double z = 0, double w = 1);
+ static DOMPoint* fromPoint(DOMPointInit&);
zino 2016/12/19 18:02:31 nit: const DOMPointInit?
Byoungkwon Ko 2016/12/19 18:59:42 Done.
void setX(double x) { m_x = x; }
void setY(double y) { m_y = y; }

Powered by Google App Engine
This is Rietveld 408576698