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"
10 DOMPoint* DOMPoint::create(const Dictionary& point)
17 if (!DictionaryHelper::get(point, "x", x))
19 if (!DictionaryHelper::get(point, "y", y))
21 if (!DictionaryHelper::get(point, "z", z))
23 if (!DictionaryHelper::get(point, "w", w))
26 return new DOMPoint(x, y, z, w);
29 DOMPoint* DOMPoint::create(double x, double y, double z, double w)
31 return new DOMPoint(x, y, z, w);
34 DOMPoint::DOMPoint(double x, double y, double z, double w)
35 : DOMPointReadOnly(x, y, z, w)