parser/html/nsHtml5OplessBuilder.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/html/nsHtml5OplessBuilder.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 sw=2 et tw=78: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsHtml5OplessBuilder_h
    1.11 +#define nsHtml5OplessBuilder_h
    1.12 +
    1.13 +#include "nsHtml5DocumentBuilder.h"
    1.14 +
    1.15 +class nsParserBase;
    1.16 +
    1.17 +/**
    1.18 + * This class implements a minimal subclass of nsHtml5DocumentBuilder that
    1.19 + * works when tree operation queues that are part of the off-the-main-thread
    1.20 + * parsing machinery are not used and, therefore, nsHtml5TreeOpExecutor is
    1.21 + * not used.
    1.22 + *
    1.23 + * This class is mostly responsible for wrapping tree building in an update
    1.24 + * batch and resetting various fields in nsContentSink upon finishing.
    1.25 + */
    1.26 +class nsHtml5OplessBuilder : public nsHtml5DocumentBuilder
    1.27 +{
    1.28 +public:
    1.29 +  NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
    1.30 +
    1.31 +  nsHtml5OplessBuilder();
    1.32 +  ~nsHtml5OplessBuilder();
    1.33 +  void Start();
    1.34 +  void Finish();
    1.35 +  void SetParser(nsParserBase* aParser);
    1.36 +};
    1.37 +
    1.38 +#endif // nsHtml5OplessBuilder_h

mercurial