2012-05-29 15:52:43 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2013-08-23 15:07:10 +00:00
|
|
|
#ifndef nsAHtml5TreeBuilderState_h
|
|
|
|
#define nsAHtml5TreeBuilderState_h
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2010-04-19 13:25:13 +00:00
|
|
|
/**
|
|
|
|
* Interface for exposing the internal state of the HTML5 tree builder.
|
|
|
|
* For more documentation, please see
|
|
|
|
* http://hg.mozilla.org/projects/htmlparser/file/tip/src/nu/validator/htmlparser/impl/StateSnapshot.java
|
|
|
|
*/
|
2009-09-21 13:18:20 +00:00
|
|
|
class nsAHtml5TreeBuilderState {
|
|
|
|
public:
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual jArray<nsHtml5StackNode*,int32_t> getStack() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual jArray<nsHtml5StackNode*,int32_t> getListOfActiveFormattingElements() = 0;
|
2013-08-12 21:46:12 +00:00
|
|
|
|
|
|
|
virtual jArray<int32_t,int32_t> getTemplateModeStack() = 0;
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual int32_t getStackLength() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual int32_t getListOfActiveFormattingElementsLength() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2013-08-12 21:46:12 +00:00
|
|
|
virtual int32_t getTemplateModeStackLength() = 0;
|
|
|
|
|
2014-03-05 20:26:07 +00:00
|
|
|
virtual nsIContent** getFormPointer() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2014-03-05 20:26:07 +00:00
|
|
|
virtual nsIContent** getHeadPointer() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2014-03-05 20:26:07 +00:00
|
|
|
virtual nsIContent** getDeepTreeSurrogateParent() = 0;
|
2010-09-06 07:41:26 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual int32_t getMode() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
virtual int32_t getOriginalMode() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
virtual bool isFramesetOk() = 0;
|
2009-12-23 08:31:48 +00:00
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
virtual bool isNeedToDropLF() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
virtual bool isQuirks() = 0;
|
2009-09-21 13:18:20 +00:00
|
|
|
|
|
|
|
virtual ~nsAHtml5TreeBuilderState() {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-08-23 15:07:10 +00:00
|
|
|
#endif /* nsAHtml5TreeBuilderState_h */
|