Bug 1776761 [wpt PR 34611] - [FedCM] Remove traces of revoke, a=testonly
[gecko.git] / parser / html / nsHtml5StackNode.h
blobbe570171c2b0c982c0c93dc784fb52b0d2b4d617
1 /*
2 * Copyright (c) 2007 Henri Sivonen
3 * Copyright (c) 2007-2011 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
32 #include "nsAtom.h"
33 #include "nsHtml5AtomTable.h"
34 #include "nsHtml5String.h"
35 #include "nsNameSpaceManager.h"
36 #include "nsIContent.h"
37 #include "nsTraceRefcnt.h"
38 #include "jArray.h"
39 #include "nsHtml5ArrayCopy.h"
40 #include "nsAHtml5TreeBuilderState.h"
41 #include "nsGkAtoms.h"
42 #include "nsHtml5ByteReadable.h"
43 #include "nsHtml5Macros.h"
44 #include "nsIContentHandle.h"
45 #include "nsHtml5Portability.h"
46 #include "nsHtml5ContentCreatorFunction.h"
48 class nsHtml5StreamParser;
50 class nsHtml5AttributeName;
51 class nsHtml5ElementName;
52 class nsHtml5Tokenizer;
53 class nsHtml5TreeBuilder;
54 class nsHtml5UTF16Buffer;
55 class nsHtml5StateSnapshot;
56 class nsHtml5Portability;
58 class nsHtml5StackNode {
59 public:
60 int32_t idxInTreeBuilder;
61 int32_t flags;
62 RefPtr<nsAtom> name;
63 RefPtr<nsAtom> popName;
64 int32_t ns;
65 nsIContentHandle* node;
66 nsHtml5HtmlAttributes* attributes;
68 private:
69 int32_t refcount;
70 mozilla::dom::HTMLContentCreatorFunction htmlCreator;
72 public:
73 inline int32_t getFlags() { return flags; }
75 int32_t getGroup();
76 bool isScoping();
77 bool isSpecial();
78 bool isFosterParenting();
79 bool isHtmlIntegrationPoint();
80 explicit nsHtml5StackNode(int32_t idxInTreeBuilder);
81 mozilla::dom::HTMLContentCreatorFunction getHtmlCreator();
82 void setValues(int32_t flags, int32_t ns, nsAtom* name,
83 nsIContentHandle* node, nsAtom* popName,
84 nsHtml5HtmlAttributes* attributes,
85 mozilla::dom::HTMLContentCreatorFunction htmlCreator);
86 void setValues(nsHtml5ElementName* elementName, nsIContentHandle* node);
87 void setValues(nsHtml5ElementName* elementName, nsIContentHandle* node,
88 nsHtml5HtmlAttributes* attributes);
89 void setValues(nsHtml5ElementName* elementName, nsIContentHandle* node,
90 nsAtom* popName);
91 void setValues(nsHtml5ElementName* elementName, nsAtom* popName,
92 nsIContentHandle* node);
93 void setValues(nsHtml5ElementName* elementName, nsIContentHandle* node,
94 nsAtom* popName, bool markAsIntegrationPoint);
96 private:
97 static int32_t prepareSvgFlags(int32_t flags);
98 static int32_t prepareMathFlags(int32_t flags, bool markAsIntegrationPoint);
100 public:
101 ~nsHtml5StackNode();
102 void dropAttributes();
103 void retain();
104 void release(nsHtml5TreeBuilder* owningTreeBuilder);
105 bool isUnused();
106 static void initializeStatics();
107 static void releaseStatics();
110 #endif