Bug 1890793: Assert CallArgs::newTarget is not gray. r=spidermonkey-reviewers,sfink...
[gecko.git] / dom / svg / SVGGElement.cpp
blob40d81fea84663f3b13a755966074afa22982f6c2
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "mozilla/dom/SVGGElement.h"
8 #include "mozilla/dom/SVGGElementBinding.h"
10 NS_IMPL_NS_NEW_SVG_ELEMENT(G)
12 namespace mozilla::dom {
14 JSObject* SVGGElement::WrapNode(JSContext* aCx,
15 JS::Handle<JSObject*> aGivenProto) {
16 return SVGGElement_Binding::Wrap(aCx, this, aGivenProto);
19 //----------------------------------------------------------------------
20 // Implementation
22 SVGGElement::SVGGElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
23 : SVGGraphicsElement(std::move(aNodeInfo)) {}
25 //----------------------------------------------------------------------
26 // nsINode methods
28 NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGGElement)
30 } // namespace mozilla::dom