LCOV - code coverage report
Current view: top level - editor/libeditor - EditTransactionBase.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 9 20 45.0 %
Date: 2017-07-14 16:53:18 Functions: 6 11 54.5 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #include "mozilla/EditTransactionBase.h"
       7             : #include "nsError.h"
       8             : #include "nsISupportsBase.h"
       9             : 
      10             : namespace mozilla {
      11             : 
      12             : NS_IMPL_CYCLE_COLLECTION_CLASS(EditTransactionBase)
      13             : 
      14           0 : NS_IMPL_CYCLE_COLLECTION_UNLINK_0(EditTransactionBase)
      15           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(EditTransactionBase)
      16             :   // We don't have anything to traverse, but some of our subclasses do.
      17           0 : NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
      18             : 
      19           6 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(EditTransactionBase)
      20           6 :   NS_INTERFACE_MAP_ENTRY(nsITransaction)
      21           0 :   NS_INTERFACE_MAP_ENTRY(nsPIEditorTransaction)
      22           0 :   NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsITransaction)
      23           0 : NS_INTERFACE_MAP_END
      24             : 
      25          18 : NS_IMPL_CYCLE_COLLECTING_ADDREF(EditTransactionBase)
      26          23 : NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_LAST_RELEASE(EditTransactionBase,
      27             :                                                    LastRelease())
      28             : 
      29           5 : EditTransactionBase::~EditTransactionBase()
      30             : {
      31           5 : }
      32             : 
      33             : NS_IMETHODIMP
      34           0 : EditTransactionBase::RedoTransaction()
      35             : {
      36           0 :   return DoTransaction();
      37             : }
      38             : 
      39             : NS_IMETHODIMP
      40           8 : EditTransactionBase::GetIsTransient(bool* aIsTransient)
      41             : {
      42           8 :   *aIsTransient = false;
      43             : 
      44           8 :   return NS_OK;
      45             : }
      46             : 
      47             : NS_IMETHODIMP
      48           0 : EditTransactionBase::Merge(nsITransaction* aTransaction, bool* aDidMerge)
      49             : {
      50           0 :   *aDidMerge = false;
      51             : 
      52           0 :   return NS_OK;
      53             : }
      54             : 
      55             : } // namespace mozilla

Generated by: LCOV version 1.13