LCOV - code coverage report
Current view: top level - dom/html - HTMLFontElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 21 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 7 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             : #ifndef HTMLFontElement_h___
       7             : #define HTMLFontElement_h___
       8             : 
       9             : #include "mozilla/Attributes.h"
      10             : #include "nsGenericHTMLElement.h"
      11             : 
      12             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : class HTMLFontElement final : public nsGenericHTMLElement
      16             : {
      17             : public:
      18           0 :   explicit HTMLFontElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      19           0 :     : nsGenericHTMLElement(aNodeInfo)
      20             :   {
      21           0 :   }
      22             : 
      23           0 :   void GetColor(DOMString& aColor)
      24             :   {
      25           0 :     GetHTMLAttr(nsGkAtoms::color, aColor);
      26           0 :   }
      27           0 :   void SetColor(const nsAString& aColor, ErrorResult& aError)
      28             :   {
      29           0 :     SetHTMLAttr(nsGkAtoms::color, aColor, aError);
      30           0 :   }
      31           0 :   void GetFace(DOMString& aFace)
      32             :   {
      33           0 :     GetHTMLAttr(nsGkAtoms::face, aFace);
      34           0 :   }
      35           0 :   void SetFace(const nsAString& aFace, ErrorResult& aError)
      36             :   {
      37           0 :     SetHTMLAttr(nsGkAtoms::face, aFace, aError);
      38           0 :   }
      39           0 :   void GetSize(DOMString& aSize)
      40             :   {
      41           0 :     GetHTMLAttr(nsGkAtoms::size, aSize);
      42           0 :   }
      43           0 :   void SetSize(const nsAString& aSize, ErrorResult& aError)
      44             :   {
      45           0 :     SetHTMLAttr(nsGkAtoms::size, aSize, aError);
      46           0 :   }
      47             : 
      48             :   virtual bool ParseAttribute(int32_t aNamespaceID,
      49             :                                 nsIAtom* aAttribute,
      50             :                                 const nsAString& aValue,
      51             :                                 nsAttrValue& aResult) override;
      52             :   NS_IMETHOD_(bool) IsAttributeMapped(const nsIAtom* aAttribute) const override;
      53             :   virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction() const override;
      54             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      55             :                          bool aPreallocateChildren) const override;
      56             : 
      57             : protected:
      58             :   virtual ~HTMLFontElement();
      59             : 
      60             :   virtual JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) override;
      61             : 
      62             : private:
      63             :   static void MapAttributesIntoRule(const nsMappedAttributes* aAttributes,
      64             :                                     GenericSpecifiedValues* aGenericData);
      65             : };
      66             : 
      67             : } // namespace dom
      68             : } // namespace mozilla
      69             : 
      70             : #endif /* HTMLFontElement_h___ */

Generated by: LCOV version 1.13