Bug 1880216 - Migrate Fenix docs into Sphinx. r=owlish,geckoview-reviewers,android...
[gecko.git] / dom / html / HTMLTimeElement.cpp
blobfc3003ce9f289a299c48b77d3d0804f3b010dd2b
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 "HTMLTimeElement.h"
8 #include "mozilla/dom/HTMLTimeElementBinding.h"
9 #include "nsGenericHTMLElement.h"
10 #include "nsVariant.h"
11 #include "nsGkAtoms.h"
13 NS_IMPL_NS_NEW_HTML_ELEMENT(Time)
15 namespace mozilla::dom {
17 HTMLTimeElement::HTMLTimeElement(
18 already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
19 : nsGenericHTMLElement(std::move(aNodeInfo)) {}
21 HTMLTimeElement::~HTMLTimeElement() = default;
23 NS_IMPL_ELEMENT_CLONE(HTMLTimeElement)
25 JSObject* HTMLTimeElement::WrapNode(JSContext* cx,
26 JS::Handle<JSObject*> aGivenProto) {
27 return HTMLTimeElement_Binding::Wrap(cx, this, aGivenProto);
30 } // namespace mozilla::dom