Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/HTMLTemplateElement.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 mozilla_dom_HTMLTemplateElement_h
8
#define mozilla_dom_HTMLTemplateElement_h
9
10
#include "mozilla/Attributes.h"
11
#include "nsGenericHTMLElement.h"
12
#include "mozilla/dom/DocumentFragment.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
class HTMLTemplateElement final : public nsGenericHTMLElement
18
{
19
public:
20
  explicit HTMLTemplateElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
21
22
  // nsISupports
23
  NS_DECL_ISUPPORTS_INHERITED
24
25
  NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(HTMLTemplateElement,
26
                                           nsGenericHTMLElement)
27
28
  virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
29
30
  DocumentFragment* Content()
31
0
  {
32
0
    return mContent;
33
0
  }
34
35
protected:
36
  virtual ~HTMLTemplateElement();
37
38
  virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
39
40
  RefPtr<DocumentFragment> mContent;
41
};
42
43
} // namespace dom
44
} // namespace mozilla
45
46
#endif // mozilla_dom_HTMLTemplateElement_h
47