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 Details

    • AnonymousBlockBox

      public AnonymousBlockBox(Element element)
  • Method Details

    • layout

      public void layout(LayoutContext c)
      Overrides:
      layout in class BlockBox
    • 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 List getOpenInlineBoxes()
    • setOpenInlineBoxes

      public void setOpenInlineBoxes(List openInlineBoxes)
    • isSkipWhenCollapsingMargins

      public boolean isSkipWhenCollapsingMargins()
    • provideSiblingMarginToFloats

      public void provideSiblingMarginToFloats(int margin)
    • isMayCollapseMarginsWithChildren

      public boolean isMayCollapseMarginsWithChildren()
    • styleText

      public void styleText(LayoutContext c)
      Overrides:
      styleText in class BlockBox
    • copyOf

      public BlockBox copyOf()
      Overrides:
      copyOf in class BlockBox