Bug 1861985 - Let the parent process handle validating command encoders. r=webgpu...
[gecko.git] / parser / html / nsHtml5OplessBuilder.h
blob4fa4f4e7358a0119a5061bb362db03f700874aa3
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.
20 * This class is mostly responsible for wrapping tree building in an update
21 * batch and resetting various fields in nsContentSink upon finishing.
23 class nsHtml5OplessBuilder : public nsHtml5DocumentBuilder {
24 public:
25 nsHtml5OplessBuilder();
26 ~nsHtml5OplessBuilder();
27 void Start();
28 void Finish();
29 void SetParser(nsParserBase* aParser);
32 #endif // nsHtml5OplessBuilder_h