dom/html/HTMLDataElement.cpp
author Razvan Maries <rmaries@mozilla.com>
Tue, 19 Nov 2019 23:43:59 +0200
changeset 502659 92ff4d99f814bab4ddcb5ad7077e2c407b41c9d0
parent 448947 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Backed out 15 changesets (bug 1596988, bug 1592820, bug 1596761, bug 1529534, bug 1263176, bug 1582348, bug 1595823, bug 1596980, bug 1597616, bug 1597316, bug 1595256, bug 1596661, bug 1596428, bug 1596475) for accidentally getting merged by the script from bug 1481916. a=backout Backed out changeset 5fd5626f1b89 Backed out changeset 0889c2f4171c (bug 1592820) Backed out changeset 5bc069be94fa (bug 1529534) Backed out changeset 262d5c44d7a7 (bug 1596980) Backed out changeset a608016e1c34 (bug 1595256) Backed out changeset 481e4ef0c01d (bug 1596661) Backed out changeset 42f70440b347 (bug 1263176) Backed out changeset 7deb597b7839 (bug 1582348) Backed out changeset c5dbc172388f (bug 1595823) Backed out changeset 9b33becd0b68 (bug 1597616) Backed out changeset b468fa7a97ad (bug 1596988) Backed out changeset ad32f331d00a (bug 1597316) Backed out changeset ddc25b4c2894 (bug 1596428) Backed out changeset f45ce6406168 (bug 1596475) Backed out changeset b7aecce8a7c0 (bug 1596761)

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "HTMLDataElement.h"
#include "mozilla/dom/HTMLDataElementBinding.h"
#include "nsGenericHTMLElement.h"

NS_IMPL_NS_NEW_HTML_ELEMENT(Data)

namespace mozilla {
namespace dom {

HTMLDataElement::HTMLDataElement(
    already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
    : nsGenericHTMLElement(std::move(aNodeInfo)) {}

HTMLDataElement::~HTMLDataElement() {}

NS_IMPL_ELEMENT_CLONE(HTMLDataElement)

JSObject* HTMLDataElement::WrapNode(JSContext* aCx,
                                    JS::Handle<JSObject*> aGivenProto) {
  return HTMLDataElement_Binding::Wrap(aCx, this, aGivenProto);
}

}  // namespace dom
}  // namespace mozilla