parser/html/nsAHtml5TreeBuilderState.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/html/nsAHtml5TreeBuilderState.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,50 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef nsAHtml5TreeBuilderState_h
     1.9 +#define nsAHtml5TreeBuilderState_h
    1.10 +
    1.11 +#include "nsIContentHandle.h"
    1.12 +
    1.13 +/**
    1.14 + * Interface for exposing the internal state of the HTML5 tree builder.
    1.15 + * For more documentation, please see
    1.16 + * http://hg.mozilla.org/projects/htmlparser/file/tip/src/nu/validator/htmlparser/impl/StateSnapshot.java
    1.17 + */
    1.18 +class nsAHtml5TreeBuilderState {
    1.19 +  public:
    1.20 +  
    1.21 +    virtual jArray<nsHtml5StackNode*,int32_t> getStack() = 0;
    1.22 +    
    1.23 +    virtual jArray<nsHtml5StackNode*,int32_t> getListOfActiveFormattingElements() = 0;
    1.24 +
    1.25 +    virtual jArray<int32_t,int32_t> getTemplateModeStack() = 0;
    1.26 +
    1.27 +    virtual int32_t getStackLength() = 0;
    1.28 +
    1.29 +    virtual int32_t getListOfActiveFormattingElementsLength() = 0;
    1.30 +
    1.31 +    virtual int32_t getTemplateModeStackLength() = 0;
    1.32 +
    1.33 +    virtual nsIContentHandle* getFormPointer() = 0;
    1.34 +    
    1.35 +    virtual nsIContentHandle* getHeadPointer() = 0;
    1.36 +
    1.37 +    virtual nsIContentHandle* getDeepTreeSurrogateParent() = 0;
    1.38 +
    1.39 +    virtual int32_t getMode() = 0;
    1.40 +
    1.41 +    virtual int32_t getOriginalMode() = 0;
    1.42 +
    1.43 +    virtual bool isFramesetOk() = 0;
    1.44 +
    1.45 +    virtual bool isNeedToDropLF() = 0;
    1.46 +
    1.47 +    virtual bool isQuirks() = 0;
    1.48 +    
    1.49 +    virtual ~nsAHtml5TreeBuilderState() {
    1.50 +    }
    1.51 +};
    1.52 +
    1.53 +#endif /* nsAHtml5TreeBuilderState_h */

mercurial