2012-05-29 19:52:43 +04: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 17:18:20 +04:00
|
|
|
|
2013-08-23 19:07:10 +04:00
|
|
|
#ifndef nsAHtml5TreeBuilderState_h
|
|
|
|
#define nsAHtml5TreeBuilderState_h
|
2009-09-21 17:18:20 +04:00
|
|
|
|
2014-03-05 23:38:49 +04:00
|
|
|
#include "nsIContentHandle.h"
|
|
|
|
|
2010-04-19 17:25:13 +04:00
|
|
|
/**
|
|
|
|
* Interface for exposing the internal state of the HTML5 tree builder.
|
|
|
|
* For more documentation, please see
|
2017-02-07 19:52:56 +03:00
|
|
|
* https://hg.mozilla.org/projects/htmlparser/file/tip/src/nu/validator/htmlparser/impl/StateSnapshot.java
|
2010-04-19 17:25:13 +04:00
|
|
|
*/
|
2018-03-16 18:26:06 +03:00
|
|
|
class nsAHtml5TreeBuilderState {
|
|
|
|
public:
|
|
|
|
virtual jArray<nsHtml5StackNode*, int32_t> getStack() = 0;
|
2013-08-13 01:46:12 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual jArray<nsHtml5StackNode*, int32_t>
|
|
|
|
getListOfActiveFormattingElements() = 0;
|
2013-08-13 01:46:12 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual jArray<int32_t, int32_t> getTemplateModeStack() = 0;
|
2009-09-21 17:18:20 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual int32_t getStackLength() = 0;
|
2009-09-21 17:18:20 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual int32_t getListOfActiveFormattingElementsLength() = 0;
|
2013-08-13 01:46:12 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual int32_t getTemplateModeStackLength() = 0;
|
2009-09-21 17:18:20 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual nsIContentHandle* getFormPointer() = 0;
|
2017-09-28 12:30:33 +03:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual nsIContentHandle* getHeadPointer() = 0;
|
2009-09-21 17:18:20 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual int32_t getMode() = 0;
|
2009-12-23 11:31:48 +03:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual int32_t getOriginalMode() = 0;
|
2009-09-21 17:18:20 +04:00
|
|
|
|
2018-03-16 18:26:06 +03:00
|
|
|
virtual bool isFramesetOk() = 0;
|
|
|
|
|
|
|
|
virtual bool isNeedToDropLF() = 0;
|
|
|
|
|
|
|
|
virtual bool isQuirks() = 0;
|
|
|
|
|
|
|
|
virtual ~nsAHtml5TreeBuilderState() {}
|
2009-09-21 17:18:20 +04:00
|
|
|
};
|
|
|
|
|
2013-08-23 19:07:10 +04:00
|
|
|
#endif /* nsAHtml5TreeBuilderState_h */
|