Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/HTMLBRElement.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_HTMLBRElement_h
8
#define mozilla_dom_HTMLBRElement_h
9
10
#include "mozilla/Attributes.h"
11
#include "nsGenericHTMLElement.h"
12
#include "nsGkAtoms.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
class HTMLBRElement final : public nsGenericHTMLElement
18
{
19
public:
20
  explicit HTMLBRElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
21
22
  virtual bool ParseAttribute(int32_t aNamespaceID,
23
                                nsAtom* aAttribute,
24
                                const nsAString& aValue,
25
                                nsIPrincipal* aMaybeScriptedPrincipal,
26
                                nsAttrValue& aResult) override;
27
  NS_IMETHOD_(bool) IsAttributeMapped(const nsAtom* aAttribute) const override;
28
  virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction() const override;
29
  virtual nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
30
31
  bool Clear()
32
0
  {
33
0
    return GetBoolAttr(nsGkAtoms::clear);
34
0
  }
35
  void SetClear(const nsAString& aClear, ErrorResult& aError)
36
0
  {
37
0
    return SetHTMLAttr(nsGkAtoms::clear, aClear, aError);
38
0
  }
39
  void GetClear(DOMString& aClear) const
40
0
  {
41
0
    return GetHTMLAttr(nsGkAtoms::clear, aClear);
42
0
  }
43
44
  virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
45
46
private:
47
  virtual ~HTMLBRElement();
48
49
  static void MapAttributesIntoRule(const nsMappedAttributes* aAttributes,
50
                                    MappedDeclarations&);
51
};
52
53
} // namespace dom
54
} // namespace mozilla
55
56
#endif
57