blob: cbb5c27babefc91bd63d586e9a338bc45ae85a05 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/geometry/dom_point.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_dom_point_init.h"
namespace blink {
DOMPoint* DOMPoint::Create(double x, double y, double z, double w) {
return MakeGarbageCollected<DOMPoint>(x, y, z, w);
DOMPoint* DOMPoint::fromPoint(const DOMPointInit* other) {
return MakeGarbageCollected<DOMPoint>(other->x(), other->y(), other->z(),
DOMPoint::DOMPoint(double x, double y, double z, double w)
: DOMPointReadOnly(x, y, z, w) {}
} // namespace blink