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

Generated by: LCOV version 1.13