Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/nsXMLElement.h
Line
Count
Source (jump to first uncovered line)
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
#ifndef nsXMLElement_h___
8
#define nsXMLElement_h___
9
10
#include "mozilla/Attributes.h"
11
#include "mozilla/dom/Element.h"
12
#include "mozilla/dom/DOMRect.h"
13
14
class nsXMLElement : public mozilla::dom::Element
15
{
16
public:
17
  explicit nsXMLElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
18
    : mozilla::dom::Element(std::move(aNodeInfo))
19
0
  {
20
0
  }
21
22
  // nsISupports
23
  NS_INLINE_DECL_REFCOUNTING_INHERITED(nsXMLElement, mozilla::dom::Element)
24
25
  // nsINode interface methods
26
  virtual nsresult Clone(mozilla::dom::NodeInfo*, nsINode **aResult) const override;
27
28
  virtual void UnbindFromTree(bool aDeep = true,
29
                              bool aNullParent = true) override;
30
31
protected:
32
0
  virtual ~nsXMLElement() {}
33
34
  virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
35
};
36
37
#endif // nsXMLElement_h___