1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "core/dom/DOMPoint.h"
7 #include "core/dom/DOMPointInit.h"
11 DOMPoint* DOMPoint::create(const DOMPointInit& point)
13 return new DOMPoint(point.x(), point.y(), point.z(), point.w());
16 DOMPoint* DOMPoint::create(double x, double y, double z, double w)
18 return new DOMPoint(x, y, z, w);
21 DOMPoint::DOMPoint(double x, double y, double z, double w)
22 : DOMPointReadOnly(x, y, z, w)