parser/html/nsHtml5OplessBuilder.cpp

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     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/. */
     7 #include "nsHtml5OplessBuilder.h"
     9 #include "nsScriptLoader.h"
    10 #include "mozilla/css/Loader.h"
    11 #include "nsIDocShell.h"
    12 #include "nsIHTMLDocument.h"
    14 nsHtml5OplessBuilder::nsHtml5OplessBuilder()
    15  : nsHtml5DocumentBuilder(true)
    16 {
    17 }
    19 nsHtml5OplessBuilder::~nsHtml5OplessBuilder()
    20 {
    21 }
    23 void
    24 nsHtml5OplessBuilder::Start()
    25 {
    26   mFlushState = eInFlush;
    27   BeginDocUpdate();
    28 }
    30 void
    31 nsHtml5OplessBuilder::Finish()
    32 {
    33   EndDocUpdate();
    34   DropParserAndPerfHint();
    35   mScriptLoader = nullptr;
    36   mDocument = nullptr;
    37   mNodeInfoManager = nullptr;
    38   mCSSLoader = nullptr;
    39   mDocumentURI = nullptr;
    40   mDocShell = nullptr;
    41   mOwnedElements.Clear();
    42   mFlushState = eNotFlushing;
    43 }
    45 void
    46 nsHtml5OplessBuilder::SetParser(nsParserBase* aParser)
    47 {
    48   mParser = aParser;
    49 }

mercurial