parser/html/nsHtml5StateSnapshot.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/html/nsHtml5StateSnapshot.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,182 @@
     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 +#define nsHtml5StateSnapshot_cpp__
    1.32 +
    1.33 +#include "nsIAtom.h"
    1.34 +#include "nsHtml5AtomTable.h"
    1.35 +#include "nsString.h"
    1.36 +#include "nsNameSpaceManager.h"
    1.37 +#include "nsIContent.h"
    1.38 +#include "nsTraceRefcnt.h"
    1.39 +#include "jArray.h"
    1.40 +#include "nsHtml5ArrayCopy.h"
    1.41 +#include "nsAHtml5TreeBuilderState.h"
    1.42 +#include "nsHtml5Atoms.h"
    1.43 +#include "nsHtml5ByteReadable.h"
    1.44 +#include "nsIUnicodeDecoder.h"
    1.45 +#include "nsHtml5Macros.h"
    1.46 +#include "nsIContentHandle.h"
    1.47 +
    1.48 +#include "nsHtml5Tokenizer.h"
    1.49 +#include "nsHtml5TreeBuilder.h"
    1.50 +#include "nsHtml5MetaScanner.h"
    1.51 +#include "nsHtml5AttributeName.h"
    1.52 +#include "nsHtml5ElementName.h"
    1.53 +#include "nsHtml5HtmlAttributes.h"
    1.54 +#include "nsHtml5StackNode.h"
    1.55 +#include "nsHtml5UTF16Buffer.h"
    1.56 +#include "nsHtml5Portability.h"
    1.57 +
    1.58 +#include "nsHtml5StateSnapshot.h"
    1.59 +
    1.60 +
    1.61 +nsHtml5StateSnapshot::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.62 +  : stack(stack),
    1.63 +    listOfActiveFormattingElements(listOfActiveFormattingElements),
    1.64 +    templateModeStack(templateModeStack),
    1.65 +    formPointer(formPointer),
    1.66 +    headPointer(headPointer),
    1.67 +    deepTreeSurrogateParent(deepTreeSurrogateParent),
    1.68 +    mode(mode),
    1.69 +    originalMode(originalMode),
    1.70 +    framesetOk(framesetOk),
    1.71 +    needToDropLF(needToDropLF),
    1.72 +    quirks(quirks)
    1.73 +{
    1.74 +  MOZ_COUNT_CTOR(nsHtml5StateSnapshot);
    1.75 +}
    1.76 +
    1.77 +jArray<nsHtml5StackNode*,int32_t> 
    1.78 +nsHtml5StateSnapshot::getStack()
    1.79 +{
    1.80 +  return stack;
    1.81 +}
    1.82 +
    1.83 +jArray<int32_t,int32_t> 
    1.84 +nsHtml5StateSnapshot::getTemplateModeStack()
    1.85 +{
    1.86 +  return templateModeStack;
    1.87 +}
    1.88 +
    1.89 +jArray<nsHtml5StackNode*,int32_t> 
    1.90 +nsHtml5StateSnapshot::getListOfActiveFormattingElements()
    1.91 +{
    1.92 +  return listOfActiveFormattingElements;
    1.93 +}
    1.94 +
    1.95 +nsIContentHandle* 
    1.96 +nsHtml5StateSnapshot::getFormPointer()
    1.97 +{
    1.98 +  return formPointer;
    1.99 +}
   1.100 +
   1.101 +nsIContentHandle* 
   1.102 +nsHtml5StateSnapshot::getHeadPointer()
   1.103 +{
   1.104 +  return headPointer;
   1.105 +}
   1.106 +
   1.107 +nsIContentHandle* 
   1.108 +nsHtml5StateSnapshot::getDeepTreeSurrogateParent()
   1.109 +{
   1.110 +  return deepTreeSurrogateParent;
   1.111 +}
   1.112 +
   1.113 +int32_t 
   1.114 +nsHtml5StateSnapshot::getMode()
   1.115 +{
   1.116 +  return mode;
   1.117 +}
   1.118 +
   1.119 +int32_t 
   1.120 +nsHtml5StateSnapshot::getOriginalMode()
   1.121 +{
   1.122 +  return originalMode;
   1.123 +}
   1.124 +
   1.125 +bool 
   1.126 +nsHtml5StateSnapshot::isFramesetOk()
   1.127 +{
   1.128 +  return framesetOk;
   1.129 +}
   1.130 +
   1.131 +bool 
   1.132 +nsHtml5StateSnapshot::isNeedToDropLF()
   1.133 +{
   1.134 +  return needToDropLF;
   1.135 +}
   1.136 +
   1.137 +bool 
   1.138 +nsHtml5StateSnapshot::isQuirks()
   1.139 +{
   1.140 +  return quirks;
   1.141 +}
   1.142 +
   1.143 +int32_t 
   1.144 +nsHtml5StateSnapshot::getListOfActiveFormattingElementsLength()
   1.145 +{
   1.146 +  return listOfActiveFormattingElements.length;
   1.147 +}
   1.148 +
   1.149 +int32_t 
   1.150 +nsHtml5StateSnapshot::getStackLength()
   1.151 +{
   1.152 +  return stack.length;
   1.153 +}
   1.154 +
   1.155 +int32_t 
   1.156 +nsHtml5StateSnapshot::getTemplateModeStackLength()
   1.157 +{
   1.158 +  return templateModeStack.length;
   1.159 +}
   1.160 +
   1.161 +
   1.162 +nsHtml5StateSnapshot::~nsHtml5StateSnapshot()
   1.163 +{
   1.164 +  MOZ_COUNT_DTOR(nsHtml5StateSnapshot);
   1.165 +  for (int32_t i = 0; i < stack.length; i++) {
   1.166 +    stack[i]->release();
   1.167 +  }
   1.168 +  for (int32_t i = 0; i < listOfActiveFormattingElements.length; i++) {
   1.169 +    if (listOfActiveFormattingElements[i]) {
   1.170 +      listOfActiveFormattingElements[i]->release();
   1.171 +    }
   1.172 +  }
   1.173 +}
   1.174 +
   1.175 +void
   1.176 +nsHtml5StateSnapshot::initializeStatics()
   1.177 +{
   1.178 +}
   1.179 +
   1.180 +void
   1.181 +nsHtml5StateSnapshot::releaseStatics()
   1.182 +{
   1.183 +}
   1.184 +
   1.185 +

mercurial