LCOV - code coverage report
Current view: top level - dom/xml - CDATASection.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 23 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 10 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             : #include "mozilla/dom/CDATASection.h"
       8             : #include "mozilla/dom/CDATASectionBinding.h"
       9             : #include "mozilla/IntegerPrintfMacros.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace dom {
      13             : 
      14           0 : CDATASection::~CDATASection()
      15             : {
      16           0 : }
      17             : 
      18           0 : NS_IMPL_ISUPPORTS_INHERITED(CDATASection, nsGenericDOMDataNode, nsIDOMNode,
      19             :                             nsIDOMCharacterData, nsIDOMText,
      20             :                             nsIDOMCDATASection)
      21             : 
      22             : JSObject*
      23           0 : CDATASection::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
      24             : {
      25           0 :   return CDATASectionBinding::Wrap(aCx, this, aGivenProto);
      26             : }
      27             : 
      28             : bool
      29           0 : CDATASection::IsNodeOfType(uint32_t aFlags) const
      30             : {
      31           0 :   return !(aFlags & ~(eCONTENT | eTEXT | eDATA_NODE));
      32             : }
      33             : 
      34             : nsGenericDOMDataNode*
      35           0 : CDATASection::CloneDataNode(mozilla::dom::NodeInfo *aNodeInfo, bool aCloneText) const
      36             : {
      37           0 :   RefPtr<mozilla::dom::NodeInfo> ni = aNodeInfo;
      38           0 :   CDATASection *it = new CDATASection(ni.forget());
      39           0 :   if (it && aCloneText) {
      40           0 :     it->mText = mText;
      41             :   }
      42             : 
      43           0 :   return it;
      44             : }
      45             : 
      46             : #ifdef DEBUG
      47             : void
      48           0 : CDATASection::List(FILE* out, int32_t aIndent) const
      49             : {
      50             :   int32_t index;
      51           0 :   for (index = aIndent; --index >= 0; ) fputs("  ", out);
      52             : 
      53           0 :   fprintf(out, "CDATASection refcount=%" PRIuPTR "<", mRefCnt.get());
      54             : 
      55           0 :   nsAutoString tmp;
      56           0 :   ToCString(tmp, 0, mText.GetLength());
      57           0 :   fputs(NS_LossyConvertUTF16toASCII(tmp).get(), out);
      58             : 
      59           0 :   fputs(">\n", out);
      60           0 : }
      61             : 
      62             : void
      63           0 : CDATASection::DumpContent(FILE* out, int32_t aIndent,
      64             :                                bool aDumpAll) const {
      65           0 : }
      66             : #endif
      67             : 
      68             : } // namespace dom
      69             : } // namespace mozilla

Generated by: LCOV version 1.13