5. LineLayoutManager.getNextBreakPoss

5.1. Prepare for the main loop

  • Create a new empty list of possible line endings, vecPossEnd.
  • Retrieve the ipd availIPD from the layout context.
  • Create a new layout context (inline layout context) for the child layout managers, based on the layout context for this layout manager.
  • Clear the map of previous ipds.
  • Record the length of vecInlineBreaks, which we can use to find the last breakposs of the previous line.
  • Set prevBP to null; prevBP contains the last confirmed breakposs of this line.