michael@0: /* michael@0: * Copyright (c) 2009-2010 Mozilla Foundation michael@0: * michael@0: * Permission is hereby granted, free of charge, to any person obtaining a michael@0: * copy of this software and associated documentation files (the "Software"), michael@0: * to deal in the Software without restriction, including without limitation michael@0: * the rights to use, copy, modify, merge, publish, distribute, sublicense, michael@0: * and/or sell copies of the Software, and to permit persons to whom the michael@0: * Software is furnished to do so, subject to the following conditions: michael@0: * michael@0: * The above copyright notice and this permission notice shall be included in michael@0: * all copies or substantial portions of the Software. michael@0: * michael@0: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR michael@0: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, michael@0: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL michael@0: * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER michael@0: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING michael@0: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER michael@0: * DEALINGS IN THE SOFTWARE. michael@0: */ michael@0: michael@0: /* michael@0: * THIS IS A GENERATED FILE. PLEASE DO NOT EDIT. michael@0: * Please edit StateSnapshot.java instead and regenerate. michael@0: */ michael@0: michael@0: #define nsHtml5StateSnapshot_cpp__ michael@0: michael@0: #include "nsIAtom.h" michael@0: #include "nsHtml5AtomTable.h" michael@0: #include "nsString.h" michael@0: #include "nsNameSpaceManager.h" michael@0: #include "nsIContent.h" michael@0: #include "nsTraceRefcnt.h" michael@0: #include "jArray.h" michael@0: #include "nsHtml5ArrayCopy.h" michael@0: #include "nsAHtml5TreeBuilderState.h" michael@0: #include "nsHtml5Atoms.h" michael@0: #include "nsHtml5ByteReadable.h" michael@0: #include "nsIUnicodeDecoder.h" michael@0: #include "nsHtml5Macros.h" michael@0: #include "nsIContentHandle.h" michael@0: michael@0: #include "nsHtml5Tokenizer.h" michael@0: #include "nsHtml5TreeBuilder.h" michael@0: #include "nsHtml5MetaScanner.h" michael@0: #include "nsHtml5AttributeName.h" michael@0: #include "nsHtml5ElementName.h" michael@0: #include "nsHtml5HtmlAttributes.h" michael@0: #include "nsHtml5StackNode.h" michael@0: #include "nsHtml5UTF16Buffer.h" michael@0: #include "nsHtml5Portability.h" michael@0: michael@0: #include "nsHtml5StateSnapshot.h" michael@0: michael@0: michael@0: nsHtml5StateSnapshot::nsHtml5StateSnapshot(jArray stack, jArray listOfActiveFormattingElements, jArray templateModeStack, nsIContentHandle* formPointer, nsIContentHandle* headPointer, nsIContentHandle* deepTreeSurrogateParent, int32_t mode, int32_t originalMode, bool framesetOk, bool needToDropLF, bool quirks) michael@0: : stack(stack), michael@0: listOfActiveFormattingElements(listOfActiveFormattingElements), michael@0: templateModeStack(templateModeStack), michael@0: formPointer(formPointer), michael@0: headPointer(headPointer), michael@0: deepTreeSurrogateParent(deepTreeSurrogateParent), michael@0: mode(mode), michael@0: originalMode(originalMode), michael@0: framesetOk(framesetOk), michael@0: needToDropLF(needToDropLF), michael@0: quirks(quirks) michael@0: { michael@0: MOZ_COUNT_CTOR(nsHtml5StateSnapshot); michael@0: } michael@0: michael@0: jArray michael@0: nsHtml5StateSnapshot::getStack() michael@0: { michael@0: return stack; michael@0: } michael@0: michael@0: jArray michael@0: nsHtml5StateSnapshot::getTemplateModeStack() michael@0: { michael@0: return templateModeStack; michael@0: } michael@0: michael@0: jArray michael@0: nsHtml5StateSnapshot::getListOfActiveFormattingElements() michael@0: { michael@0: return listOfActiveFormattingElements; michael@0: } michael@0: michael@0: nsIContentHandle* michael@0: nsHtml5StateSnapshot::getFormPointer() michael@0: { michael@0: return formPointer; michael@0: } michael@0: michael@0: nsIContentHandle* michael@0: nsHtml5StateSnapshot::getHeadPointer() michael@0: { michael@0: return headPointer; michael@0: } michael@0: michael@0: nsIContentHandle* michael@0: nsHtml5StateSnapshot::getDeepTreeSurrogateParent() michael@0: { michael@0: return deepTreeSurrogateParent; michael@0: } michael@0: michael@0: int32_t michael@0: nsHtml5StateSnapshot::getMode() michael@0: { michael@0: return mode; michael@0: } michael@0: michael@0: int32_t michael@0: nsHtml5StateSnapshot::getOriginalMode() michael@0: { michael@0: return originalMode; michael@0: } michael@0: michael@0: bool michael@0: nsHtml5StateSnapshot::isFramesetOk() michael@0: { michael@0: return framesetOk; michael@0: } michael@0: michael@0: bool michael@0: nsHtml5StateSnapshot::isNeedToDropLF() michael@0: { michael@0: return needToDropLF; michael@0: } michael@0: michael@0: bool michael@0: nsHtml5StateSnapshot::isQuirks() michael@0: { michael@0: return quirks; michael@0: } michael@0: michael@0: int32_t michael@0: nsHtml5StateSnapshot::getListOfActiveFormattingElementsLength() michael@0: { michael@0: return listOfActiveFormattingElements.length; michael@0: } michael@0: michael@0: int32_t michael@0: nsHtml5StateSnapshot::getStackLength() michael@0: { michael@0: return stack.length; michael@0: } michael@0: michael@0: int32_t michael@0: nsHtml5StateSnapshot::getTemplateModeStackLength() michael@0: { michael@0: return templateModeStack.length; michael@0: } michael@0: michael@0: michael@0: nsHtml5StateSnapshot::~nsHtml5StateSnapshot() michael@0: { michael@0: MOZ_COUNT_DTOR(nsHtml5StateSnapshot); michael@0: for (int32_t i = 0; i < stack.length; i++) { michael@0: stack[i]->release(); michael@0: } michael@0: for (int32_t i = 0; i < listOfActiveFormattingElements.length; i++) { michael@0: if (listOfActiveFormattingElements[i]) { michael@0: listOfActiveFormattingElements[i]->release(); michael@0: } michael@0: } michael@0: } michael@0: michael@0: void michael@0: nsHtml5StateSnapshot::initializeStatics() michael@0: { michael@0: } michael@0: michael@0: void michael@0: nsHtml5StateSnapshot::releaseStatics() michael@0: { michael@0: } michael@0: michael@0: