tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsAHtml5TreeBuilderState.h (1405B)


      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/. */
      4 
      5 #ifndef nsAHtml5TreeBuilderState_h
      6 #define nsAHtml5TreeBuilderState_h
      7 
      8 #include <cstdint>
      9 #include "nsIContentHandle.h"
     10 
     11 template <class T, class L>
     12 class jArray;
     13 class nsHtml5StackNode;
     14 
     15 /**
     16 * Interface for exposing the internal state of the HTML5 tree builder.
     17 * For more documentation, please see
     18 * https://hg.mozilla.org/projects/htmlparser/file/tip/src/nu/validator/htmlparser/impl/StateSnapshot.java
     19 */
     20 class nsAHtml5TreeBuilderState {
     21 public:
     22  virtual jArray<nsHtml5StackNode*, int32_t> getStack() = 0;
     23 
     24  virtual jArray<nsHtml5StackNode*, int32_t>
     25  getListOfActiveFormattingElements() = 0;
     26 
     27  virtual jArray<int32_t, int32_t> getTemplateModeStack() = 0;
     28 
     29  virtual int32_t getStackLength() = 0;
     30 
     31  virtual int32_t getListOfActiveFormattingElementsLength() = 0;
     32 
     33  virtual int32_t getTemplateModeStackLength() = 0;
     34 
     35  virtual nsIContentHandle* getFormPointer() = 0;
     36 
     37  virtual nsIContentHandle* getHeadPointer() = 0;
     38 
     39  virtual int32_t getMode() = 0;
     40 
     41  virtual int32_t getOriginalMode() = 0;
     42 
     43  virtual bool isFramesetOk() = 0;
     44 
     45  virtual bool isNeedToDropLF() = 0;
     46 
     47  virtual bool isQuirks() = 0;
     48 
     49  virtual ~nsAHtml5TreeBuilderState() {}
     50 };
     51 
     52 #endif /* nsAHtml5TreeBuilderState_h */