parser/html/nsAHtml5TreeBuilderState.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef nsAHtml5TreeBuilderState_h
     6 #define nsAHtml5TreeBuilderState_h
     8 #include "nsIContentHandle.h"
    10 /**
    11  * Interface for exposing the internal state of the HTML5 tree builder.
    12  * For more documentation, please see
    13  * http://hg.mozilla.org/projects/htmlparser/file/tip/src/nu/validator/htmlparser/impl/StateSnapshot.java
    14  */
    15 class nsAHtml5TreeBuilderState {
    16   public:
    18     virtual jArray<nsHtml5StackNode*,int32_t> getStack() = 0;
    20     virtual jArray<nsHtml5StackNode*,int32_t> getListOfActiveFormattingElements() = 0;
    22     virtual jArray<int32_t,int32_t> getTemplateModeStack() = 0;
    24     virtual int32_t getStackLength() = 0;
    26     virtual int32_t getListOfActiveFormattingElementsLength() = 0;
    28     virtual int32_t getTemplateModeStackLength() = 0;
    30     virtual nsIContentHandle* getFormPointer() = 0;
    32     virtual nsIContentHandle* getHeadPointer() = 0;
    34     virtual nsIContentHandle* getDeepTreeSurrogateParent() = 0;
    36     virtual int32_t getMode() = 0;
    38     virtual int32_t getOriginalMode() = 0;
    40     virtual bool isFramesetOk() = 0;
    42     virtual bool isNeedToDropLF() = 0;
    44     virtual bool isQuirks() = 0;
    46     virtual ~nsAHtml5TreeBuilderState() {
    47     }
    48 };
    50 #endif /* nsAHtml5TreeBuilderState_h */

mercurial