parser/html/nsHtml5OplessBuilder.h

branch
TOR_BUG_9701
changeset 14
925c144e1f1f
equal deleted inserted replaced
-1:000000000000 0:022e29a0034e
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 #ifndef nsHtml5OplessBuilder_h
8 #define nsHtml5OplessBuilder_h
9
10 #include "nsHtml5DocumentBuilder.h"
11
12 class nsParserBase;
13
14 /**
15 * This class implements a minimal subclass of nsHtml5DocumentBuilder that
16 * works when tree operation queues that are part of the off-the-main-thread
17 * parsing machinery are not used and, therefore, nsHtml5TreeOpExecutor is
18 * not used.
19 *
20 * This class is mostly responsible for wrapping tree building in an update
21 * batch and resetting various fields in nsContentSink upon finishing.
22 */
23 class nsHtml5OplessBuilder : public nsHtml5DocumentBuilder
24 {
25 public:
26 NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
27
28 nsHtml5OplessBuilder();
29 ~nsHtml5OplessBuilder();
30 void Start();
31 void Finish();
32 void SetParser(nsParserBase* aParser);
33 };
34
35 #endif // nsHtml5OplessBuilder_h

mercurial