Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=2 sw=2 et tw=78: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsHtml5OplessBuilder.h" |
michael@0 | 8 | |
michael@0 | 9 | #include "nsScriptLoader.h" |
michael@0 | 10 | #include "mozilla/css/Loader.h" |
michael@0 | 11 | #include "nsIDocShell.h" |
michael@0 | 12 | #include "nsIHTMLDocument.h" |
michael@0 | 13 | |
michael@0 | 14 | nsHtml5OplessBuilder::nsHtml5OplessBuilder() |
michael@0 | 15 | : nsHtml5DocumentBuilder(true) |
michael@0 | 16 | { |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | nsHtml5OplessBuilder::~nsHtml5OplessBuilder() |
michael@0 | 20 | { |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | void |
michael@0 | 24 | nsHtml5OplessBuilder::Start() |
michael@0 | 25 | { |
michael@0 | 26 | mFlushState = eInFlush; |
michael@0 | 27 | BeginDocUpdate(); |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | void |
michael@0 | 31 | nsHtml5OplessBuilder::Finish() |
michael@0 | 32 | { |
michael@0 | 33 | EndDocUpdate(); |
michael@0 | 34 | DropParserAndPerfHint(); |
michael@0 | 35 | mScriptLoader = nullptr; |
michael@0 | 36 | mDocument = nullptr; |
michael@0 | 37 | mNodeInfoManager = nullptr; |
michael@0 | 38 | mCSSLoader = nullptr; |
michael@0 | 39 | mDocumentURI = nullptr; |
michael@0 | 40 | mDocShell = nullptr; |
michael@0 | 41 | mOwnedElements.Clear(); |
michael@0 | 42 | mFlushState = eNotFlushing; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | void |
michael@0 | 46 | nsHtml5OplessBuilder::SetParser(nsParserBase* aParser) |
michael@0 | 47 | { |
michael@0 | 48 | mParser = aParser; |
michael@0 | 49 | } |