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

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

mercurial