HTMLDataElement.cpp 875 B

12345678910111213141516171819202122232425262728293031323334
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "HTMLDataElement.h"
  6. #include "mozilla/dom/HTMLDataElementBinding.h"
  7. #include "nsGenericHTMLElement.h"
  8. NS_IMPL_NS_NEW_HTML_ELEMENT(Data)
  9. namespace mozilla {
  10. namespace dom {
  11. HTMLDataElement::HTMLDataElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
  12. : nsGenericHTMLElement(aNodeInfo)
  13. {
  14. }
  15. HTMLDataElement::~HTMLDataElement()
  16. {
  17. }
  18. NS_IMPL_ELEMENT_CLONE(HTMLDataElement)
  19. JSObject*
  20. HTMLDataElement::WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
  21. {
  22. return HTMLDataElementBinding::Wrap(aCx, this, aGivenProto);
  23. }
  24. } // namespace dom
  25. } // namespace mozilla