Class AnonymousBlockBox

  • All Implemented Interfaces:
    InlinePaintable, Styleable

    public class AnonymousBlockBox
    extends BlockBox
    An anonymous block box as defined in the CSS spec. This class is only used when wrapping inline content in a block box in order to ensure that a block box only ever contains either block or inline content. Other anonymous block boxes create a BlockBox directly with the anonymous property is true.
    • Constructor Detail

      • AnonymousBlockBox

        public AnonymousBlockBox​(org.w3c.dom.Element element)
    • Method Detail

      • getContentWidth

        public int getContentWidth()
        Overrides:
        getContentWidth in class Box
      • find

        public Box find​(CssContext cssCtx,
                        int absX,
                        int absY,
                        boolean findAnonymous)
        Overrides:
        find in class Box
      • getOpenInlineBoxes

        public java.util.List getOpenInlineBoxes()
      • setOpenInlineBoxes

        public void setOpenInlineBoxes​(java.util.List openInlineBoxes)
      • isSkipWhenCollapsingMargins

        public boolean isSkipWhenCollapsingMargins()
      • provideSiblingMarginToFloats

        public void provideSiblingMarginToFloats​(int margin)
      • isMayCollapseMarginsWithChildren

        public boolean isMayCollapseMarginsWithChildren()