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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMQuad.cpp

Issue 2615653003: [GeometryInterface] Implement DOMQuad and DOMQuadInit. (Closed)
Patch Set: add const keyword Created 3 years, 11 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #include "core/dom/DOMQuad.h"
6
7 #include "core/dom/DOMPoint.h"
8
9 namespace blink {
10
11 DOMQuad* DOMQuad::create(const DOMPointInit& p1,
12 const DOMPointInit& p2,
13 const DOMPointInit& p3,
14 const DOMPointInit& p4) {
15 return new DOMQuad(p1, p2, p3, p4);
16 }
17
18 DOMQuad::DOMQuad(const DOMPointInit& p1,
19 const DOMPointInit& p2,
20 const DOMPointInit& p3,
21 const DOMPointInit& p4)
22 : m_p1(DOMPoint::fromPoint(p1)),
23 m_p2(DOMPoint::fromPoint(p2)),
24 m_p3(DOMPoint::fromPoint(p3)),
25 m_p4(DOMPoint::fromPoint(p4)) {}
26
27 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMQuad.h ('k') | third_party/WebKit/Source/core/dom/DOMQuad.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698