LCOV - code coverage report
Current view: top level - dom/base - nsMappedAttributeElement.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 7 16 43.8 %
Date: 2017-07-14 16:53:18 Functions: 2 5 40.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             : #include "nsMappedAttributeElement.h"
       8             : #include "nsIDocument.h"
       9             : 
      10             : nsresult
      11          79 : nsMappedAttributeElement::WalkContentStyleRules(nsRuleWalker* aRuleWalker)
      12             : {
      13          79 :   mAttrsAndChildren.WalkMappedAttributeStyleRules(aRuleWalker);
      14          79 :   return NS_OK;
      15             : }
      16             : 
      17             : bool
      18          26 : nsMappedAttributeElement::SetAndSwapMappedAttribute(nsIAtom* aName,
      19             :                                                     nsAttrValue& aValue,
      20             :                                                     bool* aValueWasSet,
      21             :                                                     nsresult* aRetval)
      22             : {
      23          26 :   nsHTMLStyleSheet* sheet = OwnerDoc()->GetAttributeStyleSheet();
      24          26 :   *aRetval = mAttrsAndChildren.SetAndSwapMappedAttr(aName, aValue,
      25             :                                                     this, sheet, aValueWasSet);
      26          26 :   return true;
      27             : }
      28             : 
      29             : nsMapRuleToAttributesFunc
      30           0 : nsMappedAttributeElement::GetAttributeMappingFunction() const
      31             : {
      32           0 :   return &MapNoAttributesInto;
      33             : }
      34             : 
      35             : void
      36           0 : nsMappedAttributeElement::MapNoAttributesInto(const nsMappedAttributes* aAttributes,
      37             :                                               mozilla::GenericSpecifiedValues* aGenericData)
      38             : {
      39           0 : }
      40             : 
      41             : void
      42           0 : nsMappedAttributeElement::NodeInfoChanged(nsIDocument* aOldDoc)
      43             : {
      44           0 :   nsHTMLStyleSheet* sheet = OwnerDoc()->GetAttributeStyleSheet();
      45           0 :   mAttrsAndChildren.SetMappedAttrStyleSheet(sheet);
      46           0 :   nsMappedAttributeElementBase::NodeInfoChanged(aOldDoc);
      47           0 : }

Generated by: LCOV version 1.13