|
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 * http://hg.mozilla.org/projects/htmlparser/file/tip/src/nu/validator/htmlparser/impl/StateSnapshot.java |
|
14 */ |
|
15 class nsAHtml5TreeBuilderState { |
|
16 public: |
|
17 |
|
18 virtual jArray<nsHtml5StackNode*,int32_t> getStack() = 0; |
|
19 |
|
20 virtual jArray<nsHtml5StackNode*,int32_t> getListOfActiveFormattingElements() = 0; |
|
21 |
|
22 virtual jArray<int32_t,int32_t> getTemplateModeStack() = 0; |
|
23 |
|
24 virtual int32_t getStackLength() = 0; |
|
25 |
|
26 virtual int32_t getListOfActiveFormattingElementsLength() = 0; |
|
27 |
|
28 virtual int32_t getTemplateModeStackLength() = 0; |
|
29 |
|
30 virtual nsIContentHandle* getFormPointer() = 0; |
|
31 |
|
32 virtual nsIContentHandle* getHeadPointer() = 0; |
|
33 |
|
34 virtual nsIContentHandle* getDeepTreeSurrogateParent() = 0; |
|
35 |
|
36 virtual int32_t getMode() = 0; |
|
37 |
|
38 virtual int32_t getOriginalMode() = 0; |
|
39 |
|
40 virtual bool isFramesetOk() = 0; |
|
41 |
|
42 virtual bool isNeedToDropLF() = 0; |
|
43 |
|
44 virtual bool isQuirks() = 0; |
|
45 |
|
46 virtual ~nsAHtml5TreeBuilderState() { |
|
47 } |
|
48 }; |
|
49 |
|
50 #endif /* nsAHtml5TreeBuilderState_h */ |