parser/html/nsHtml5TreeBuilder.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/html/nsHtml5TreeBuilder.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,381 @@
     1.4 +/*
     1.5 + * Copyright (c) 2007 Henri Sivonen
     1.6 + * Copyright (c) 2007-2011 Mozilla Foundation
     1.7 + * Portions of comments Copyright 2004-2008 Apple Computer, Inc., Mozilla
     1.8 + * Foundation, and Opera Software ASA.
     1.9 + *
    1.10 + * Permission is hereby granted, free of charge, to any person obtaining a
    1.11 + * copy of this software and associated documentation files (the "Software"),
    1.12 + * to deal in the Software without restriction, including without limitation
    1.13 + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    1.14 + * and/or sell copies of the Software, and to permit persons to whom the
    1.15 + * Software is furnished to do so, subject to the following conditions:
    1.16 + *
    1.17 + * The above copyright notice and this permission notice shall be included in
    1.18 + * all copies or substantial portions of the Software.
    1.19 + *
    1.20 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1.21 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    1.22 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    1.23 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1.24 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    1.25 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    1.26 + * DEALINGS IN THE SOFTWARE.
    1.27 + */
    1.28 +
    1.29 +/*
    1.30 + * THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
    1.31 + * Please edit TreeBuilder.java instead and regenerate.
    1.32 + */
    1.33 +
    1.34 +#ifndef nsHtml5TreeBuilder_h
    1.35 +#define nsHtml5TreeBuilder_h
    1.36 +
    1.37 +#include "nsContentUtils.h"
    1.38 +#include "nsIAtom.h"
    1.39 +#include "nsHtml5AtomTable.h"
    1.40 +#include "nsITimer.h"
    1.41 +#include "nsString.h"
    1.42 +#include "nsNameSpaceManager.h"
    1.43 +#include "nsIContent.h"
    1.44 +#include "nsTraceRefcnt.h"
    1.45 +#include "jArray.h"
    1.46 +#include "nsHtml5DocumentMode.h"
    1.47 +#include "nsHtml5ArrayCopy.h"
    1.48 +#include "nsHtml5Parser.h"
    1.49 +#include "nsHtml5Atoms.h"
    1.50 +#include "nsHtml5TreeOperation.h"
    1.51 +#include "nsHtml5PendingNotification.h"
    1.52 +#include "nsHtml5StateSnapshot.h"
    1.53 +#include "nsHtml5StackNode.h"
    1.54 +#include "nsHtml5TreeOpExecutor.h"
    1.55 +#include "nsHtml5StreamParser.h"
    1.56 +#include "nsAHtml5TreeBuilderState.h"
    1.57 +#include "nsHtml5Highlighter.h"
    1.58 +#include "nsHtml5PlainTextUtils.h"
    1.59 +#include "nsHtml5ViewSourceUtils.h"
    1.60 +#include "mozilla/Likely.h"
    1.61 +#include "nsIContentHandle.h"
    1.62 +#include "nsHtml5OplessBuilder.h"
    1.63 +
    1.64 +class nsHtml5StreamParser;
    1.65 +
    1.66 +class nsHtml5Tokenizer;
    1.67 +class nsHtml5MetaScanner;
    1.68 +class nsHtml5AttributeName;
    1.69 +class nsHtml5ElementName;
    1.70 +class nsHtml5HtmlAttributes;
    1.71 +class nsHtml5UTF16Buffer;
    1.72 +class nsHtml5StateSnapshot;
    1.73 +class nsHtml5Portability;
    1.74 +
    1.75 +
    1.76 +class nsHtml5TreeBuilder : public nsAHtml5TreeBuilderState
    1.77 +{
    1.78 +  private:
    1.79 +    static char16_t REPLACEMENT_CHARACTER[];
    1.80 +    static staticJArray<const char*,int32_t> QUIRKY_PUBLIC_IDS;
    1.81 +    int32_t mode;
    1.82 +    int32_t originalMode;
    1.83 +    bool framesetOk;
    1.84 +  protected:
    1.85 +    nsHtml5Tokenizer* tokenizer;
    1.86 +  private:
    1.87 +    bool scriptingEnabled;
    1.88 +    bool needToDropLF;
    1.89 +    bool fragment;
    1.90 +    nsIAtom* contextName;
    1.91 +    int32_t contextNamespace;
    1.92 +    nsIContentHandle* contextNode;
    1.93 +    autoJArray<int32_t,int32_t> templateModeStack;
    1.94 +    int32_t templateModePtr;
    1.95 +    autoJArray<nsHtml5StackNode*,int32_t> stack;
    1.96 +    int32_t currentPtr;
    1.97 +    autoJArray<nsHtml5StackNode*,int32_t> listOfActiveFormattingElements;
    1.98 +    int32_t listPtr;
    1.99 +    nsIContentHandle* formPointer;
   1.100 +    nsIContentHandle* headPointer;
   1.101 +    nsIContentHandle* deepTreeSurrogateParent;
   1.102 +  protected:
   1.103 +    autoJArray<char16_t,int32_t> charBuffer;
   1.104 +    int32_t charBufferLen;
   1.105 +  private:
   1.106 +    bool quirks;
   1.107 +    bool isSrcdocDocument;
   1.108 +  public:
   1.109 +    void startTokenization(nsHtml5Tokenizer* self);
   1.110 +    void doctype(nsIAtom* name, nsString* publicIdentifier, nsString* systemIdentifier, bool forceQuirks);
   1.111 +    void comment(char16_t* buf, int32_t start, int32_t length);
   1.112 +    void characters(const char16_t* buf, int32_t start, int32_t length);
   1.113 +    void zeroOriginatingReplacementCharacter();
   1.114 +    void eof();
   1.115 +    void endTokenization();
   1.116 +    void startTag(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes, bool selfClosing);
   1.117 +  private:
   1.118 +    void startTagTitleInHead(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.119 +    void startTagGenericRawText(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.120 +    void startTagScriptInHead(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.121 +    void startTagTemplateInHead(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.122 +    bool isTemplateContents();
   1.123 +    bool isTemplateModeStackEmpty();
   1.124 +    bool isSpecialParentInForeign(nsHtml5StackNode* stackNode);
   1.125 +  public:
   1.126 +    static nsString* extractCharsetFromContent(nsString* attributeValue);
   1.127 +  private:
   1.128 +    void checkMetaCharset(nsHtml5HtmlAttributes* attributes);
   1.129 +  public:
   1.130 +    void endTag(nsHtml5ElementName* elementName);
   1.131 +  private:
   1.132 +    void endTagTemplateInHead();
   1.133 +    int32_t findLastInTableScopeOrRootTemplateTbodyTheadTfoot();
   1.134 +    int32_t findLast(nsIAtom* name);
   1.135 +    int32_t findLastInTableScope(nsIAtom* name);
   1.136 +    int32_t findLastInButtonScope(nsIAtom* name);
   1.137 +    int32_t findLastInScope(nsIAtom* name);
   1.138 +    int32_t findLastInListScope(nsIAtom* name);
   1.139 +    int32_t findLastInScopeHn();
   1.140 +    void generateImpliedEndTagsExceptFor(nsIAtom* name);
   1.141 +    void generateImpliedEndTags();
   1.142 +    bool isSecondOnStackBody();
   1.143 +    void documentModeInternal(nsHtml5DocumentMode m, nsString* publicIdentifier, nsString* systemIdentifier, bool html4SpecificAdditionalErrorChecks);
   1.144 +    bool isAlmostStandards(nsString* publicIdentifier, nsString* systemIdentifier);
   1.145 +    bool isQuirky(nsIAtom* name, nsString* publicIdentifier, nsString* systemIdentifier, bool forceQuirks);
   1.146 +    void closeTheCell(int32_t eltPos);
   1.147 +    int32_t findLastInTableScopeTdTh();
   1.148 +    void clearStackBackTo(int32_t eltPos);
   1.149 +    void resetTheInsertionMode();
   1.150 +    void implicitlyCloseP();
   1.151 +    bool debugOnlyClearLastStackSlot();
   1.152 +    bool debugOnlyClearLastListSlot();
   1.153 +    void pushTemplateMode(int32_t mode);
   1.154 +    void push(nsHtml5StackNode* node);
   1.155 +    void silentPush(nsHtml5StackNode* node);
   1.156 +    void append(nsHtml5StackNode* node);
   1.157 +    inline void insertMarker()
   1.158 +    {
   1.159 +      append(nullptr);
   1.160 +    }
   1.161 +
   1.162 +    void clearTheListOfActiveFormattingElementsUpToTheLastMarker();
   1.163 +    inline bool isCurrent(nsIAtom* name)
   1.164 +    {
   1.165 +      return stack[currentPtr]->ns == kNameSpaceID_XHTML && name == stack[currentPtr]->name;
   1.166 +    }
   1.167 +
   1.168 +    void removeFromStack(int32_t pos);
   1.169 +    void removeFromStack(nsHtml5StackNode* node);
   1.170 +    void removeFromListOfActiveFormattingElements(int32_t pos);
   1.171 +    bool adoptionAgencyEndTag(nsIAtom* name);
   1.172 +    void insertIntoStack(nsHtml5StackNode* node, int32_t position);
   1.173 +    void insertIntoListOfActiveFormattingElements(nsHtml5StackNode* formattingClone, int32_t bookmark);
   1.174 +    int32_t findInListOfActiveFormattingElements(nsHtml5StackNode* node);
   1.175 +    int32_t findInListOfActiveFormattingElementsContainsBetweenEndAndLastMarker(nsIAtom* name);
   1.176 +    void maybeForgetEarlierDuplicateFormattingElement(nsIAtom* name, nsHtml5HtmlAttributes* attributes);
   1.177 +    int32_t findLastOrRoot(nsIAtom* name);
   1.178 +    int32_t findLastOrRoot(int32_t group);
   1.179 +    bool addAttributesToBody(nsHtml5HtmlAttributes* attributes);
   1.180 +    void addAttributesToHtml(nsHtml5HtmlAttributes* attributes);
   1.181 +    void pushHeadPointerOntoStack();
   1.182 +    void reconstructTheActiveFormattingElements();
   1.183 +    void insertIntoFosterParent(nsIContentHandle* child);
   1.184 +    bool isInStack(nsHtml5StackNode* node);
   1.185 +    void popTemplateMode();
   1.186 +    void pop();
   1.187 +    void silentPop();
   1.188 +    void popOnEof();
   1.189 +    void appendHtmlElementToDocumentAndPush(nsHtml5HtmlAttributes* attributes);
   1.190 +    void appendHtmlElementToDocumentAndPush();
   1.191 +    void appendToCurrentNodeAndPushHeadElement(nsHtml5HtmlAttributes* attributes);
   1.192 +    void appendToCurrentNodeAndPushBodyElement(nsHtml5HtmlAttributes* attributes);
   1.193 +    void appendToCurrentNodeAndPushBodyElement();
   1.194 +    void appendToCurrentNodeAndPushFormElementMayFoster(nsHtml5HtmlAttributes* attributes);
   1.195 +    void appendToCurrentNodeAndPushFormattingElementMayFoster(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.196 +    void appendToCurrentNodeAndPushElement(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.197 +    void appendToCurrentNodeAndPushElementMayFoster(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.198 +    void appendToCurrentNodeAndPushElementMayFosterMathML(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.199 +    bool annotationXmlEncodingPermitsHtml(nsHtml5HtmlAttributes* attributes);
   1.200 +    void appendToCurrentNodeAndPushElementMayFosterSVG(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.201 +    void appendToCurrentNodeAndPushElementMayFoster(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes, nsIContentHandle* form);
   1.202 +    void appendVoidElementToCurrentMayFoster(nsIAtom* name, nsHtml5HtmlAttributes* attributes, nsIContentHandle* form);
   1.203 +    void appendVoidElementToCurrentMayFoster(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.204 +    void appendVoidElementToCurrentMayFosterSVG(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.205 +    void appendVoidElementToCurrentMayFosterMathML(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes);
   1.206 +    void appendVoidElementToCurrent(nsIAtom* name, nsHtml5HtmlAttributes* attributes, nsIContentHandle* form);
   1.207 +    void appendVoidFormToCurrent(nsHtml5HtmlAttributes* attributes);
   1.208 +  protected:
   1.209 +    void accumulateCharacters(const char16_t* buf, int32_t start, int32_t length);
   1.210 +    void requestSuspension();
   1.211 +    nsIContentHandle* createElement(int32_t ns, nsIAtom* name, nsHtml5HtmlAttributes* attributes);
   1.212 +    nsIContentHandle* createElement(int32_t ns, nsIAtom* name, nsHtml5HtmlAttributes* attributes, nsIContentHandle* form);
   1.213 +    nsIContentHandle* createHtmlElementSetAsRoot(nsHtml5HtmlAttributes* attributes);
   1.214 +    void detachFromParent(nsIContentHandle* element);
   1.215 +    bool hasChildren(nsIContentHandle* element);
   1.216 +    void appendElement(nsIContentHandle* child, nsIContentHandle* newParent);
   1.217 +    void appendChildrenToNewParent(nsIContentHandle* oldParent, nsIContentHandle* newParent);
   1.218 +    void insertFosterParentedChild(nsIContentHandle* child, nsIContentHandle* table, nsIContentHandle* stackParent);
   1.219 +    void insertFosterParentedCharacters(char16_t* buf, int32_t start, int32_t length, nsIContentHandle* table, nsIContentHandle* stackParent);
   1.220 +    void appendCharacters(nsIContentHandle* parent, char16_t* buf, int32_t start, int32_t length);
   1.221 +    void appendIsindexPrompt(nsIContentHandle* parent);
   1.222 +    void appendComment(nsIContentHandle* parent, char16_t* buf, int32_t start, int32_t length);
   1.223 +    void appendCommentToDocument(char16_t* buf, int32_t start, int32_t length);
   1.224 +    void addAttributesToElement(nsIContentHandle* element, nsHtml5HtmlAttributes* attributes);
   1.225 +    void markMalformedIfScript(nsIContentHandle* elt);
   1.226 +    void start(bool fragmentMode);
   1.227 +    void end();
   1.228 +    void appendDoctypeToDocument(nsIAtom* name, nsString* publicIdentifier, nsString* systemIdentifier);
   1.229 +    void elementPushed(int32_t ns, nsIAtom* name, nsIContentHandle* node);
   1.230 +    void elementPopped(int32_t ns, nsIAtom* name, nsIContentHandle* node);
   1.231 +  public:
   1.232 +    inline bool cdataSectionAllowed()
   1.233 +    {
   1.234 +      return isInForeign();
   1.235 +    }
   1.236 +
   1.237 +  private:
   1.238 +    bool isInForeign();
   1.239 +    bool isInForeignButNotHtmlOrMathTextIntegrationPoint();
   1.240 +  public:
   1.241 +    void setFragmentContext(nsIAtom* context, int32_t ns, nsIContentHandle* node, bool quirks);
   1.242 +  protected:
   1.243 +    nsIContentHandle* currentNode();
   1.244 +  public:
   1.245 +    bool isScriptingEnabled();
   1.246 +    void setScriptingEnabled(bool scriptingEnabled);
   1.247 +    void setIsSrcdocDocument(bool isSrcdocDocument);
   1.248 +    void flushCharacters();
   1.249 +  private:
   1.250 +    bool charBufferContainsNonWhitespace();
   1.251 +  public:
   1.252 +    nsAHtml5TreeBuilderState* newSnapshot();
   1.253 +    bool snapshotMatches(nsAHtml5TreeBuilderState* snapshot);
   1.254 +    void loadState(nsAHtml5TreeBuilderState* snapshot, nsHtml5AtomTable* interner);
   1.255 +  private:
   1.256 +    int32_t findInArray(nsHtml5StackNode* node, jArray<nsHtml5StackNode*,int32_t> arr);
   1.257 +  public:
   1.258 +    nsIContentHandle* getFormPointer();
   1.259 +    nsIContentHandle* getHeadPointer();
   1.260 +    nsIContentHandle* getDeepTreeSurrogateParent();
   1.261 +    jArray<nsHtml5StackNode*,int32_t> getListOfActiveFormattingElements();
   1.262 +    jArray<nsHtml5StackNode*,int32_t> getStack();
   1.263 +    jArray<int32_t,int32_t> getTemplateModeStack();
   1.264 +    int32_t getMode();
   1.265 +    int32_t getOriginalMode();
   1.266 +    bool isFramesetOk();
   1.267 +    bool isNeedToDropLF();
   1.268 +    bool isQuirks();
   1.269 +    int32_t getListOfActiveFormattingElementsLength();
   1.270 +    int32_t getStackLength();
   1.271 +    int32_t getTemplateModeStackLength();
   1.272 +    static void initializeStatics();
   1.273 +    static void releaseStatics();
   1.274 +
   1.275 +#include "nsHtml5TreeBuilderHSupplement.h"
   1.276 +};
   1.277 +
   1.278 +#define NS_HTML5TREE_BUILDER_OTHER 0
   1.279 +#define NS_HTML5TREE_BUILDER_A 1
   1.280 +#define NS_HTML5TREE_BUILDER_BASE 2
   1.281 +#define NS_HTML5TREE_BUILDER_BODY 3
   1.282 +#define NS_HTML5TREE_BUILDER_BR 4
   1.283 +#define NS_HTML5TREE_BUILDER_BUTTON 5
   1.284 +#define NS_HTML5TREE_BUILDER_CAPTION 6
   1.285 +#define NS_HTML5TREE_BUILDER_COL 7
   1.286 +#define NS_HTML5TREE_BUILDER_COLGROUP 8
   1.287 +#define NS_HTML5TREE_BUILDER_FORM 9
   1.288 +#define NS_HTML5TREE_BUILDER_FRAME 10
   1.289 +#define NS_HTML5TREE_BUILDER_FRAMESET 11
   1.290 +#define NS_HTML5TREE_BUILDER_IMAGE 12
   1.291 +#define NS_HTML5TREE_BUILDER_INPUT 13
   1.292 +#define NS_HTML5TREE_BUILDER_ISINDEX 14
   1.293 +#define NS_HTML5TREE_BUILDER_LI 15
   1.294 +#define NS_HTML5TREE_BUILDER_LINK_OR_BASEFONT_OR_BGSOUND 16
   1.295 +#define NS_HTML5TREE_BUILDER_MATH 17
   1.296 +#define NS_HTML5TREE_BUILDER_META 18
   1.297 +#define NS_HTML5TREE_BUILDER_SVG 19
   1.298 +#define NS_HTML5TREE_BUILDER_HEAD 20
   1.299 +#define NS_HTML5TREE_BUILDER_HR 22
   1.300 +#define NS_HTML5TREE_BUILDER_HTML 23
   1.301 +#define NS_HTML5TREE_BUILDER_NOBR 24
   1.302 +#define NS_HTML5TREE_BUILDER_NOFRAMES 25
   1.303 +#define NS_HTML5TREE_BUILDER_NOSCRIPT 26
   1.304 +#define NS_HTML5TREE_BUILDER_OPTGROUP 27
   1.305 +#define NS_HTML5TREE_BUILDER_OPTION 28
   1.306 +#define NS_HTML5TREE_BUILDER_P 29
   1.307 +#define NS_HTML5TREE_BUILDER_PLAINTEXT 30
   1.308 +#define NS_HTML5TREE_BUILDER_SCRIPT 31
   1.309 +#define NS_HTML5TREE_BUILDER_SELECT 32
   1.310 +#define NS_HTML5TREE_BUILDER_STYLE 33
   1.311 +#define NS_HTML5TREE_BUILDER_TABLE 34
   1.312 +#define NS_HTML5TREE_BUILDER_TEXTAREA 35
   1.313 +#define NS_HTML5TREE_BUILDER_TITLE 36
   1.314 +#define NS_HTML5TREE_BUILDER_TR 37
   1.315 +#define NS_HTML5TREE_BUILDER_XMP 38
   1.316 +#define NS_HTML5TREE_BUILDER_TBODY_OR_THEAD_OR_TFOOT 39
   1.317 +#define NS_HTML5TREE_BUILDER_TD_OR_TH 40
   1.318 +#define NS_HTML5TREE_BUILDER_DD_OR_DT 41
   1.319 +#define NS_HTML5TREE_BUILDER_H1_OR_H2_OR_H3_OR_H4_OR_H5_OR_H6 42
   1.320 +#define NS_HTML5TREE_BUILDER_MARQUEE_OR_APPLET 43
   1.321 +#define NS_HTML5TREE_BUILDER_PRE_OR_LISTING 44
   1.322 +#define NS_HTML5TREE_BUILDER_B_OR_BIG_OR_CODE_OR_EM_OR_I_OR_S_OR_SMALL_OR_STRIKE_OR_STRONG_OR_TT_OR_U 45
   1.323 +#define NS_HTML5TREE_BUILDER_UL_OR_OL_OR_DL 46
   1.324 +#define NS_HTML5TREE_BUILDER_IFRAME 47
   1.325 +#define NS_HTML5TREE_BUILDER_EMBED 48
   1.326 +#define NS_HTML5TREE_BUILDER_AREA_OR_WBR 49
   1.327 +#define NS_HTML5TREE_BUILDER_DIV_OR_BLOCKQUOTE_OR_CENTER_OR_MENU 50
   1.328 +#define NS_HTML5TREE_BUILDER_ADDRESS_OR_ARTICLE_OR_ASIDE_OR_DETAILS_OR_DIR_OR_FIGCAPTION_OR_FIGURE_OR_FOOTER_OR_HEADER_OR_HGROUP_OR_MAIN_OR_NAV_OR_SECTION_OR_SUMMARY 51
   1.329 +#define NS_HTML5TREE_BUILDER_RUBY_OR_SPAN_OR_SUB_OR_SUP_OR_VAR 52
   1.330 +#define NS_HTML5TREE_BUILDER_RT_OR_RP 53
   1.331 +#define NS_HTML5TREE_BUILDER_PARAM_OR_SOURCE_OR_TRACK 55
   1.332 +#define NS_HTML5TREE_BUILDER_MGLYPH_OR_MALIGNMARK 56
   1.333 +#define NS_HTML5TREE_BUILDER_MI_MO_MN_MS_MTEXT 57
   1.334 +#define NS_HTML5TREE_BUILDER_ANNOTATION_XML 58
   1.335 +#define NS_HTML5TREE_BUILDER_FOREIGNOBJECT_OR_DESC 59
   1.336 +#define NS_HTML5TREE_BUILDER_NOEMBED 60
   1.337 +#define NS_HTML5TREE_BUILDER_FIELDSET 61
   1.338 +#define NS_HTML5TREE_BUILDER_OUTPUT_OR_LABEL 62
   1.339 +#define NS_HTML5TREE_BUILDER_OBJECT 63
   1.340 +#define NS_HTML5TREE_BUILDER_FONT 64
   1.341 +#define NS_HTML5TREE_BUILDER_KEYGEN 65
   1.342 +#define NS_HTML5TREE_BUILDER_MENUITEM 66
   1.343 +#define NS_HTML5TREE_BUILDER_TEMPLATE 67
   1.344 +#define NS_HTML5TREE_BUILDER_IMG 68
   1.345 +#define NS_HTML5TREE_BUILDER_IN_ROW 0
   1.346 +#define NS_HTML5TREE_BUILDER_IN_TABLE_BODY 1
   1.347 +#define NS_HTML5TREE_BUILDER_IN_TABLE 2
   1.348 +#define NS_HTML5TREE_BUILDER_IN_CAPTION 3
   1.349 +#define NS_HTML5TREE_BUILDER_IN_CELL 4
   1.350 +#define NS_HTML5TREE_BUILDER_FRAMESET_OK 5
   1.351 +#define NS_HTML5TREE_BUILDER_IN_BODY 6
   1.352 +#define NS_HTML5TREE_BUILDER_IN_HEAD 7
   1.353 +#define NS_HTML5TREE_BUILDER_IN_HEAD_NOSCRIPT 8
   1.354 +#define NS_HTML5TREE_BUILDER_IN_COLUMN_GROUP 9
   1.355 +#define NS_HTML5TREE_BUILDER_IN_SELECT_IN_TABLE 10
   1.356 +#define NS_HTML5TREE_BUILDER_IN_SELECT 11
   1.357 +#define NS_HTML5TREE_BUILDER_AFTER_BODY 12
   1.358 +#define NS_HTML5TREE_BUILDER_IN_FRAMESET 13
   1.359 +#define NS_HTML5TREE_BUILDER_AFTER_FRAMESET 14
   1.360 +#define NS_HTML5TREE_BUILDER_INITIAL 15
   1.361 +#define NS_HTML5TREE_BUILDER_BEFORE_HTML 16
   1.362 +#define NS_HTML5TREE_BUILDER_BEFORE_HEAD 17
   1.363 +#define NS_HTML5TREE_BUILDER_AFTER_HEAD 18
   1.364 +#define NS_HTML5TREE_BUILDER_AFTER_AFTER_BODY 19
   1.365 +#define NS_HTML5TREE_BUILDER_AFTER_AFTER_FRAMESET 20
   1.366 +#define NS_HTML5TREE_BUILDER_TEXT 21
   1.367 +#define NS_HTML5TREE_BUILDER_IN_TEMPLATE 22
   1.368 +#define NS_HTML5TREE_BUILDER_CHARSET_INITIAL 0
   1.369 +#define NS_HTML5TREE_BUILDER_CHARSET_C 1
   1.370 +#define NS_HTML5TREE_BUILDER_CHARSET_H 2
   1.371 +#define NS_HTML5TREE_BUILDER_CHARSET_A 3
   1.372 +#define NS_HTML5TREE_BUILDER_CHARSET_R 4
   1.373 +#define NS_HTML5TREE_BUILDER_CHARSET_S 5
   1.374 +#define NS_HTML5TREE_BUILDER_CHARSET_E 6
   1.375 +#define NS_HTML5TREE_BUILDER_CHARSET_T 7
   1.376 +#define NS_HTML5TREE_BUILDER_CHARSET_EQUALS 8
   1.377 +#define NS_HTML5TREE_BUILDER_CHARSET_SINGLE_QUOTED 9
   1.378 +#define NS_HTML5TREE_BUILDER_CHARSET_DOUBLE_QUOTED 10
   1.379 +#define NS_HTML5TREE_BUILDER_CHARSET_UNQUOTED 11
   1.380 +#define NS_HTML5TREE_BUILDER_NOT_FOUND_ON_STACK INT32_MAX
   1.381 +
   1.382 +
   1.383 +#endif
   1.384 +

mercurial