parser/html/nsHtml5OplessBuilder.h

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 #ifndef nsHtml5OplessBuilder_h
     8 #define nsHtml5OplessBuilder_h
    10 #include "nsHtml5DocumentBuilder.h"
    12 class nsParserBase;
    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
    28   nsHtml5OplessBuilder();
    29   ~nsHtml5OplessBuilder();
    30   void Start();
    31   void Finish();
    32   void SetParser(nsParserBase* aParser);
    33 };
    35 #endif // nsHtml5OplessBuilder_h

mercurial