/src/mozilla-central/parser/html/nsAHtml5TreeBuilderState.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | | |
5 | | #ifndef nsAHtml5TreeBuilderState_h |
6 | | #define nsAHtml5TreeBuilderState_h |
7 | | |
8 | | #include "nsIContentHandle.h" |
9 | | |
10 | | /** |
11 | | * Interface for exposing the internal state of the HTML5 tree builder. |
12 | | * For more documentation, please see |
13 | | * https://hg.mozilla.org/projects/htmlparser/file/tip/src/nu/validator/htmlparser/impl/StateSnapshot.java |
14 | | */ |
15 | | class nsAHtml5TreeBuilderState |
16 | | { |
17 | | public: |
18 | | virtual jArray<nsHtml5StackNode*, int32_t> getStack() = 0; |
19 | | |
20 | | virtual jArray<nsHtml5StackNode*, int32_t> |
21 | | getListOfActiveFormattingElements() = 0; |
22 | | |
23 | | virtual jArray<int32_t, int32_t> getTemplateModeStack() = 0; |
24 | | |
25 | | virtual int32_t getStackLength() = 0; |
26 | | |
27 | | virtual int32_t getListOfActiveFormattingElementsLength() = 0; |
28 | | |
29 | | virtual int32_t getTemplateModeStackLength() = 0; |
30 | | |
31 | | virtual nsIContentHandle* getFormPointer() = 0; |
32 | | |
33 | | virtual nsIContentHandle* getHeadPointer() = 0; |
34 | | |
35 | | virtual nsIContentHandle* getDeepTreeSurrogateParent() = 0; |
36 | | |
37 | | virtual int32_t getMode() = 0; |
38 | | |
39 | | virtual int32_t getOriginalMode() = 0; |
40 | | |
41 | | virtual bool isFramesetOk() = 0; |
42 | | |
43 | | virtual bool isNeedToDropLF() = 0; |
44 | | |
45 | | virtual bool isQuirks() = 0; |
46 | | |
47 | 0 | virtual ~nsAHtml5TreeBuilderState() {} |
48 | | }; |
49 | | |
50 | | #endif /* nsAHtml5TreeBuilderState_h */ |