Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/parser/html/nsHtml5OplessBuilder.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=2 sw=2 et tw=78: */
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 "nsHtml5OplessBuilder.h"
8
9
#include "mozilla/css/Loader.h"
10
#include "mozilla/dom/ScriptLoader.h"
11
#include "nsIDocShell.h"
12
#include "nsIHTMLDocument.h"
13
14
nsHtml5OplessBuilder::nsHtml5OplessBuilder()
15
  : nsHtml5DocumentBuilder(true)
16
0
{
17
0
}
18
19
nsHtml5OplessBuilder::~nsHtml5OplessBuilder() {}
20
21
void
22
nsHtml5OplessBuilder::Start()
23
0
{
24
0
  BeginFlush();
25
0
  BeginDocUpdate();
26
0
}
27
28
void
29
nsHtml5OplessBuilder::Finish()
30
0
{
31
0
  EndDocUpdate();
32
0
  EndFlush();
33
0
  DropParserAndPerfHint();
34
0
  mScriptLoader = nullptr;
35
0
  mDocument = nullptr;
36
0
  mNodeInfoManager = nullptr;
37
0
  mCSSLoader = nullptr;
38
0
  mDocumentURI = nullptr;
39
0
  mDocShell = nullptr;
40
0
  mOwnedElements.Clear();
41
0
}
42
43
void
44
nsHtml5OplessBuilder::SetParser(nsParserBase* aParser)
45
0
{
46
0
  mParser = aParser;
47
0
}