1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/html/nsHtml5StateSnapshot.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,96 @@ 1.4 +/* 1.5 + * Copyright (c) 2009-2010 Mozilla Foundation 1.6 + * 1.7 + * Permission is hereby granted, free of charge, to any person obtaining a 1.8 + * copy of this software and associated documentation files (the "Software"), 1.9 + * to deal in the Software without restriction, including without limitation 1.10 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1.11 + * and/or sell copies of the Software, and to permit persons to whom the 1.12 + * Software is furnished to do so, subject to the following conditions: 1.13 + * 1.14 + * The above copyright notice and this permission notice shall be included in 1.15 + * all copies or substantial portions of the Software. 1.16 + * 1.17 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1.18 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1.19 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1.20 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1.21 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1.22 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1.23 + * DEALINGS IN THE SOFTWARE. 1.24 + */ 1.25 + 1.26 +/* 1.27 + * THIS IS A GENERATED FILE. PLEASE DO NOT EDIT. 1.28 + * Please edit StateSnapshot.java instead and regenerate. 1.29 + */ 1.30 + 1.31 +#ifndef nsHtml5StateSnapshot_h 1.32 +#define nsHtml5StateSnapshot_h 1.33 + 1.34 +#include "nsIAtom.h" 1.35 +#include "nsHtml5AtomTable.h" 1.36 +#include "nsString.h" 1.37 +#include "nsNameSpaceManager.h" 1.38 +#include "nsIContent.h" 1.39 +#include "nsTraceRefcnt.h" 1.40 +#include "jArray.h" 1.41 +#include "nsHtml5ArrayCopy.h" 1.42 +#include "nsAHtml5TreeBuilderState.h" 1.43 +#include "nsHtml5Atoms.h" 1.44 +#include "nsHtml5ByteReadable.h" 1.45 +#include "nsIUnicodeDecoder.h" 1.46 +#include "nsHtml5Macros.h" 1.47 +#include "nsIContentHandle.h" 1.48 + 1.49 +class nsHtml5StreamParser; 1.50 + 1.51 +class nsHtml5Tokenizer; 1.52 +class nsHtml5TreeBuilder; 1.53 +class nsHtml5MetaScanner; 1.54 +class nsHtml5AttributeName; 1.55 +class nsHtml5ElementName; 1.56 +class nsHtml5HtmlAttributes; 1.57 +class nsHtml5UTF16Buffer; 1.58 +class nsHtml5Portability; 1.59 + 1.60 + 1.61 +class nsHtml5StateSnapshot : public nsAHtml5TreeBuilderState 1.62 +{ 1.63 + private: 1.64 + autoJArray<nsHtml5StackNode*,int32_t> stack; 1.65 + autoJArray<nsHtml5StackNode*,int32_t> listOfActiveFormattingElements; 1.66 + autoJArray<int32_t,int32_t> templateModeStack; 1.67 + nsIContentHandle* formPointer; 1.68 + nsIContentHandle* headPointer; 1.69 + nsIContentHandle* deepTreeSurrogateParent; 1.70 + int32_t mode; 1.71 + int32_t originalMode; 1.72 + bool framesetOk; 1.73 + bool needToDropLF; 1.74 + bool quirks; 1.75 + public: 1.76 + 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); 1.77 + jArray<nsHtml5StackNode*,int32_t> getStack(); 1.78 + jArray<int32_t,int32_t> getTemplateModeStack(); 1.79 + jArray<nsHtml5StackNode*,int32_t> getListOfActiveFormattingElements(); 1.80 + nsIContentHandle* getFormPointer(); 1.81 + nsIContentHandle* getHeadPointer(); 1.82 + nsIContentHandle* getDeepTreeSurrogateParent(); 1.83 + int32_t getMode(); 1.84 + int32_t getOriginalMode(); 1.85 + bool isFramesetOk(); 1.86 + bool isNeedToDropLF(); 1.87 + bool isQuirks(); 1.88 + int32_t getListOfActiveFormattingElementsLength(); 1.89 + int32_t getStackLength(); 1.90 + int32_t getTemplateModeStackLength(); 1.91 + ~nsHtml5StateSnapshot(); 1.92 + static void initializeStatics(); 1.93 + static void releaseStatics(); 1.94 +}; 1.95 + 1.96 + 1.97 + 1.98 +#endif 1.99 +