LCOV - code coverage report
Current view: top level - dom/base - nsIAttribute.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 nsIAttribute_h___
       8             : #define nsIAttribute_h___
       9             : 
      10             : #include "nsINode.h"
      11             : 
      12             : class nsDOMAttributeMap;
      13             : 
      14             : #define NS_IATTRIBUTE_IID  \
      15             : { 0x84d43da7, 0xb45d, 0x47ae, \
      16             :   { 0x8f, 0xbf, 0x95, 0x26, 0x78, 0x4d, 0x5e, 0x47 } }
      17             : 
      18             : class nsIAttribute : public nsINode
      19             : {
      20             : public:
      21             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IATTRIBUTE_IID)
      22             : 
      23             :   virtual void SetMap(nsDOMAttributeMap *aMap) = 0;
      24             : 
      25           0 :   nsDOMAttributeMap *GetMap()
      26             :   {
      27           0 :     return mAttrMap;
      28             :   }
      29             : 
      30           0 :   mozilla::dom::NodeInfo *NodeInfo() const
      31             :   {
      32           0 :     return mNodeInfo;
      33             :   }
      34             : 
      35             :   /**
      36             :    * Called when our ownerElement is moved into a new document.
      37             :    * Updates the nodeinfo of this node.
      38             :    */
      39             :   virtual nsresult SetOwnerDocument(nsIDocument* aDocument) = 0;
      40             : 
      41             : protected:
      42             : #ifdef MOZILLA_INTERNAL_API
      43             :   nsIAttribute(nsDOMAttributeMap *aAttrMap,
      44             :                already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
      45             : #endif //MOZILLA_INTERNAL_API
      46             :   virtual ~nsIAttribute();
      47             : 
      48             :   RefPtr<nsDOMAttributeMap> mAttrMap;
      49             : };
      50             : 
      51             : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAttribute, NS_IATTRIBUTE_IID)
      52             : 
      53             : #endif /* nsIAttribute_h___ */

Generated by: LCOV version 1.13