public void initFirstLine ( ElementBox box ) { if ( firstLine == null ) firstLine = new LineBox ( this , 0 , 0 ) ; firstLine . considerBoxProperties ( box ) ; //recursively apply to the first in-flow box, when it is a block box for ( int i = startChild ; i < endChild ; i ++ ) { Box child = getSubBox ( i ) ; if ( child . isInFlow ( ) ) { if ( child . isBlock ( ) ) ( ( BlockBox ) child ) . initFirstLine ( box ) ; break ; } } }
Initializes the first line box with the box properties . This may be used for considering special content such as list item markers .