LCOV - code coverage report
Current view: top level - dom/base - nsDocElementCreatedNotificationRunner.h (source / functions) Hit Total Coverage
Test: output.info Lines: 8 8 100.0 %
Date: 2017-07-14 16:53:18 Functions: 4 4 100.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 nsDocElementCreatedNotificationRunner_h
       8             : #define nsDocElementCreatedNotificationRunner_h
       9             : 
      10             : #include "mozilla/Attributes.h"
      11             : #include "nsThreadUtils.h" /* nsRunnable */
      12             : 
      13             : #include "nsContentSink.h"
      14             : #include "nsCOMPtr.h"
      15             : #include "nsIDocument.h"
      16             : 
      17           6 : class nsDocElementCreatedNotificationRunner : public mozilla::Runnable
      18             : {
      19             : public:
      20           2 :   explicit nsDocElementCreatedNotificationRunner(nsIDocument* aDoc)
      21           2 :     : mozilla::Runnable("nsDocElementCreatedNotificationRunner")
      22           2 :     , mDoc(aDoc)
      23             :   {
      24           2 :   }
      25             : 
      26           2 :   NS_IMETHOD Run() override
      27             :   {
      28           2 :     nsContentSink::NotifyDocElementCreated(mDoc);
      29           2 :     return NS_OK;
      30             :   }
      31             : 
      32             :   nsCOMPtr<nsIDocument> mDoc;
      33             : };
      34             : 
      35             : #endif /* nsDocElementCreatedNotificationRunner_h */

Generated by: LCOV version 1.13