tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

HTMLTimeElement.cpp (999B)


      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/. */
      6 
      7 #include "HTMLTimeElement.h"
      8 
      9 #include "mozilla/dom/HTMLTimeElementBinding.h"
     10 #include "nsGenericHTMLElement.h"
     11 #include "nsGkAtoms.h"
     12 #include "nsVariant.h"
     13 
     14 NS_IMPL_NS_NEW_HTML_ELEMENT(Time)
     15 
     16 namespace mozilla::dom {
     17 
     18 HTMLTimeElement::HTMLTimeElement(
     19    already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
     20    : nsGenericHTMLElement(std::move(aNodeInfo)) {}
     21 
     22 HTMLTimeElement::~HTMLTimeElement() = default;
     23 
     24 NS_IMPL_ELEMENT_CLONE(HTMLTimeElement)
     25 
     26 JSObject* HTMLTimeElement::WrapNode(JSContext* cx,
     27                                    JS::Handle<JSObject*> aGivenProto) {
     28  return HTMLTimeElement_Binding::Wrap(cx, this, aGivenProto);
     29 }
     30 
     31 }  // namespace mozilla::dom