parser/html/nsHtml5StateSnapshot.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /*
michael@0 2 * Copyright (c) 2009-2010 Mozilla Foundation
michael@0 3 *
michael@0 4 * Permission is hereby granted, free of charge, to any person obtaining a
michael@0 5 * copy of this software and associated documentation files (the "Software"),
michael@0 6 * to deal in the Software without restriction, including without limitation
michael@0 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
michael@0 8 * and/or sell copies of the Software, and to permit persons to whom the
michael@0 9 * Software is furnished to do so, subject to the following conditions:
michael@0 10 *
michael@0 11 * The above copyright notice and this permission notice shall be included in
michael@0 12 * all copies or substantial portions of the Software.
michael@0 13 *
michael@0 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
michael@0 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
michael@0 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
michael@0 17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
michael@0 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
michael@0 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
michael@0 20 * DEALINGS IN THE SOFTWARE.
michael@0 21 */
michael@0 22
michael@0 23 /*
michael@0 24 * THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
michael@0 25 * Please edit StateSnapshot.java instead and regenerate.
michael@0 26 */
michael@0 27
michael@0 28 #ifndef nsHtml5StateSnapshot_h
michael@0 29 #define nsHtml5StateSnapshot_h
michael@0 30
michael@0 31 #include "nsIAtom.h"
michael@0 32 #include "nsHtml5AtomTable.h"
michael@0 33 #include "nsString.h"
michael@0 34 #include "nsNameSpaceManager.h"
michael@0 35 #include "nsIContent.h"
michael@0 36 #include "nsTraceRefcnt.h"
michael@0 37 #include "jArray.h"
michael@0 38 #include "nsHtml5ArrayCopy.h"
michael@0 39 #include "nsAHtml5TreeBuilderState.h"
michael@0 40 #include "nsHtml5Atoms.h"
michael@0 41 #include "nsHtml5ByteReadable.h"
michael@0 42 #include "nsIUnicodeDecoder.h"
michael@0 43 #include "nsHtml5Macros.h"
michael@0 44 #include "nsIContentHandle.h"
michael@0 45
michael@0 46 class nsHtml5StreamParser;
michael@0 47
michael@0 48 class nsHtml5Tokenizer;
michael@0 49 class nsHtml5TreeBuilder;
michael@0 50 class nsHtml5MetaScanner;
michael@0 51 class nsHtml5AttributeName;
michael@0 52 class nsHtml5ElementName;
michael@0 53 class nsHtml5HtmlAttributes;
michael@0 54 class nsHtml5UTF16Buffer;
michael@0 55 class nsHtml5Portability;
michael@0 56
michael@0 57
michael@0 58 class nsHtml5StateSnapshot : public nsAHtml5TreeBuilderState
michael@0 59 {
michael@0 60 private:
michael@0 61 autoJArray<nsHtml5StackNode*,int32_t> stack;
michael@0 62 autoJArray<nsHtml5StackNode*,int32_t> listOfActiveFormattingElements;
michael@0 63 autoJArray<int32_t,int32_t> templateModeStack;
michael@0 64 nsIContentHandle* formPointer;
michael@0 65 nsIContentHandle* headPointer;
michael@0 66 nsIContentHandle* deepTreeSurrogateParent;
michael@0 67 int32_t mode;
michael@0 68 int32_t originalMode;
michael@0 69 bool framesetOk;
michael@0 70 bool needToDropLF;
michael@0 71 bool quirks;
michael@0 72 public:
michael@0 73 nsHtml5StateSnapshot(jArray<nsHtml5StackNode*,int32_t> stack, jArray<nsHtml5StackNode*,int32_t> listOfActiveFormattingElements, jArray<int32_t,int32_t> templateModeStack, nsIContentHandle* formPointer, nsIContentHandle* headPointer, nsIContentHandle* deepTreeSurrogateParent, int32_t mode, int32_t originalMode, bool framesetOk, bool needToDropLF, bool quirks);
michael@0 74 jArray<nsHtml5StackNode*,int32_t> getStack();
michael@0 75 jArray<int32_t,int32_t> getTemplateModeStack();
michael@0 76 jArray<nsHtml5StackNode*,int32_t> getListOfActiveFormattingElements();
michael@0 77 nsIContentHandle* getFormPointer();
michael@0 78 nsIContentHandle* getHeadPointer();
michael@0 79 nsIContentHandle* getDeepTreeSurrogateParent();
michael@0 80 int32_t getMode();
michael@0 81 int32_t getOriginalMode();
michael@0 82 bool isFramesetOk();
michael@0 83 bool isNeedToDropLF();
michael@0 84 bool isQuirks();
michael@0 85 int32_t getListOfActiveFormattingElementsLength();
michael@0 86 int32_t getStackLength();
michael@0 87 int32_t getTemplateModeStackLength();
michael@0 88 ~nsHtml5StateSnapshot();
michael@0 89 static void initializeStatics();
michael@0 90 static void releaseStatics();
michael@0 91 };
michael@0 92
michael@0 93
michael@0 94
michael@0 95 #endif
michael@0 96

mercurial