Interface nsILayoutHistoryStateType

Hierarchy

Properties

hasStates: boolean

Whether this LayoutHistoryState contains any PresStates.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Set |aState| as the state object for |aKey|. This transfers_ownership of |aState| to the LayoutHistoryState. It will be freed when RemoveState() is called or when the LayoutHistoryState is destroyed.

    Parameters

    • aKey: nsCString
    • aState: PresStateUnique

    Returns void

  • Get the contents of the layout history.

    Parameters

    • aScrollPositionOnly: boolean
    • aKeys: invalid
    • aStates: invalid

    Returns void

  • Look up the state object for |aKey|.

    Parameters

    • aKey: nsCString

    Returns PresStatePtr

  • Check whether this history has any states in it

    Returns boolean

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Remove the state object for |aKey|.

    Parameters

    • aKey: nsCString

    Returns void

  • Remove all the states and clear the scroll position only flag.

    Returns void

  • Resets PresState::GetScrollState of all PresState objects to 0,0.

    Returns void

  • Sets whether this history can contain only scroll position history or all possible history

    Parameters

    • aFlag: constBool

    Returns void

  • Constructs a new PresState object based on the supplied data and adds it to the LayoutHistoryState.

    Parameters

    • aKey: string
    • aScrollX: number
    • aScrollY: number
    • aAllowScrollOriginDowngrade: boolean
    • aRes: number

    Returns void

  • Attempts to get the data of the PresState corresponding to the passed key. Throws if no data could be found.

    Parameters

    • aKey: string
    • aScrollX: number
    • aScrollY: number
    • aAllowScrollOriginDowngrade: boolean
    • aRes: number

    Returns void

Generated using TypeDoc