LCOV - code coverage report
Current view: top level - dom/html - HTMLBRElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             :                                 nsIAtom* aAttribute,
      24             :                                 const nsAString& aValue,
      25             :                                 nsAttrValue& aResult) override;
      26             :   NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const override;
      27             :   virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction() const override;
      28             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      29             :                          bool aPreallocateChildren) const override;
      30             : 
      31             :   bool Clear()
      32             :   {
      33             :     return GetBoolAttr(nsGkAtoms::clear);
      34             :   }
      35           0 :   void SetClear(const nsAString& aClear, ErrorResult& aError)
      36             :   {
      37           0 :     return SetHTMLAttr(nsGkAtoms::clear, aClear, aError);
      38             :   }
      39           0 :   void GetClear(DOMString& aClear) const
      40             :   {
      41           0 :     return GetHTMLAttr(nsGkAtoms::clear, aClear);
      42             :   }
      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             :                                     GenericSpecifiedValues* aGenericData);
      51             : };
      52             : 
      53             : } // namespace dom
      54             : } // namespace mozilla
      55             : 
      56             : #endif
      57             : 

Generated by: LCOV version 1.13