2 * Copyright (c) 2007 Henri Sivonen
3 * Copyright (c) 2007-2009 Mozilla Foundation
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
25 * THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
26 * Please edit StackNode.java instead and regenerate.
29 #ifndef nsHtml5StackNode_h__
30 #define nsHtml5StackNode_h__
34 #include "nsHtml5AtomTable.h"
36 #include "nsINameSpaceManager.h"
37 #include "nsIContent.h"
38 #include "nsIDocument.h"
39 #include "nsTraceRefcnt.h"
41 #include "nsHtml5DocumentMode.h"
42 #include "nsHtml5ArrayCopy.h"
43 #include "nsHtml5NamedCharacters.h"
44 #include "nsHtml5NamedCharactersAccel.h"
45 #include "nsHtml5Atoms.h"
46 #include "nsHtml5ByteReadable.h"
47 #include "nsIUnicodeDecoder.h"
48 #include "nsAHtml5TreeBuilderState.h"
49 #include "nsHtml5Macros.h"
51 class nsHtml5StreamParser
;
53 class nsHtml5Tokenizer
;
54 class nsHtml5TreeBuilder
;
55 class nsHtml5MetaScanner
;
56 class nsHtml5AttributeName
;
57 class nsHtml5ElementName
;
58 class nsHtml5HtmlAttributes
;
59 class nsHtml5UTF16Buffer
;
60 class nsHtml5StateSnapshot
;
61 class nsHtml5Portability
;
64 class nsHtml5StackNode
72 nsHtml5HtmlAttributes
* attributes
;
76 inline PRInt32
getFlags()
84 PRBool
isFosterParenting();
85 PRBool
isHtmlIntegrationPoint();
86 nsHtml5StackNode(PRInt32 flags
, PRInt32 ns
, nsIAtom
* name
, nsIContent
** node
, nsIAtom
* popName
, nsHtml5HtmlAttributes
* attributes
);
87 nsHtml5StackNode(nsHtml5ElementName
* elementName
, nsIContent
** node
);
88 nsHtml5StackNode(nsHtml5ElementName
* elementName
, nsIContent
** node
, nsHtml5HtmlAttributes
* attributes
);
89 nsHtml5StackNode(nsHtml5ElementName
* elementName
, nsIContent
** node
, nsIAtom
* popName
);
90 nsHtml5StackNode(nsHtml5ElementName
* elementName
, nsIAtom
* popName
, nsIContent
** node
);
91 nsHtml5StackNode(nsHtml5ElementName
* elementName
, nsIContent
** node
, nsIAtom
* popName
, PRBool markAsIntegrationPoint
);
93 static PRInt32
prepareSvgFlags(PRInt32 flags
);
94 static PRInt32
prepareMathFlags(PRInt32 flags
, PRBool markAsIntegrationPoint
);
97 void dropAttributes();
100 static void initializeStatics();
101 static void releaseStatics();