Class LayoutTreeSnapshot


  • public class LayoutTreeSnapshot
    extends java.lang.Object
    Table of details of an element in the DOM tree with a LayoutObject.
    • Constructor Detail

      • LayoutTreeSnapshot

        public LayoutTreeSnapshot​(java.util.List<java.lang.Integer> nodeIndex,
                                  java.util.List<ArrayOfStrings> styles,
                                  java.util.List<Rectangle> bounds,
                                  java.util.List<StringIndex> text,
                                  RareBooleanData stackingContexts,
                                  java.util.List<java.lang.Integer> paintOrders,
                                  java.util.List<Rectangle> offsetRects,
                                  java.util.List<Rectangle> scrollRects,
                                  java.util.List<Rectangle> clientRects)
    • Method Detail

      • getNodeIndex

        public java.util.List<java.lang.Integer> getNodeIndex()
        Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
      • getStyles

        public java.util.List<ArrayOfStrings> getStyles()
        Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.
      • getBounds

        public java.util.List<Rectangle> getBounds()
        The absolute position bounding box.
      • getText

        public java.util.List<StringIndex> getText()
        Contents of the LayoutText, if any.
      • getStackingContexts

        public RareBooleanData getStackingContexts()
        Stacking context information.
      • getPaintOrders

        public java.util.List<java.lang.Integer> getPaintOrders()
        Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in captureSnapshot was true.
      • getOffsetRects

        public java.util.List<Rectangle> getOffsetRects()
        The offset rect of nodes. Only available when includeDOMRects is set to true
      • getScrollRects

        public java.util.List<Rectangle> getScrollRects()
        The scroll rect of nodes. Only available when includeDOMRects is set to true
      • getClientRects

        public java.util.List<Rectangle> getClientRects()
        The client rect of nodes. Only available when includeDOMRects is set to true