LCOV - code coverage report
Current view: top level - parser/html - nsHtml5Speculation.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 14 14 100.0 %
Date: 2017-07-14 16:53:18 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       3             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : #include "nsHtml5Speculation.h"
       6             : 
       7             : using namespace mozilla;
       8             : 
       9           5 : nsHtml5Speculation::nsHtml5Speculation(nsHtml5OwningUTF16Buffer* aBuffer,
      10             :                                        int32_t aStart, 
      11             :                                        int32_t aStartLineNumber, 
      12           5 :                                        nsAHtml5TreeBuilderState* aSnapshot)
      13             :   : mBuffer(aBuffer)
      14             :   , mStart(aStart)
      15             :   , mStartLineNumber(aStartLineNumber)
      16           5 :   , mSnapshot(aSnapshot)
      17             : {
      18           5 :   MOZ_COUNT_CTOR(nsHtml5Speculation);
      19           5 : }
      20             : 
      21          10 : nsHtml5Speculation::~nsHtml5Speculation()
      22             : {
      23           5 :   MOZ_COUNT_DTOR(nsHtml5Speculation);
      24           5 : }
      25             : 
      26             : void
      27           5 : nsHtml5Speculation::MoveOpsFrom(nsTArray<nsHtml5TreeOperation>& aOpQueue)
      28             : {
      29           5 :   mOpQueue.AppendElements(Move(aOpQueue));
      30           5 : }
      31             : 
      32             : void
      33           5 : nsHtml5Speculation::FlushToSink(nsAHtml5TreeOpSink* aSink)
      34             : {
      35           5 :   aSink->MoveOpsFrom(mOpQueue);
      36           5 : }

Generated by: LCOV version 1.13