code: public void considerBox(Inline box)
      {
          if (((Box) box).isDisplayed() && !box.collapsedCompletely())
          {
              int a = box.getBaselineOffset();
              int b = box.getBelowBaseline();
          	if (box instanceof InlineElement)
          	{
      	        VerticalAlign va = ((InlineElement) box).getVerticalAlign();
      	        if (va != VerticalAlign.TOP && va != VerticalAlign.BOTTOM) //the box influences 'a' and 'b'
      	        {
      	            int dif = computeBaselineDifference((InlineElement) box);
      	            a -= dif; //what from the box is above our baseline
      	            b += dif; //what from the box is below
      	            above = Math.max(above, a);
      	            below = Math.max(below, b);
      	            maxAlignedHeight = Math.max(maxAlignedHeight, box.getMaxLineHeight());
      	        }
      	        else if (va == VerticalAlign.BOTTOM)
      	            heightFromBottom = Math.max(heightFromBottom, box.getMaxLineHeight());
          	}
          	else
          	{
      	        above = Math.max(above, a);
      	        below = Math.max(below, b);
                  maxAlignedHeight = Math.max(maxAlignedHeight, box.getMaxLineHeight());
          	}
          	
              maxBoxHeight = Math.max(maxBoxHeight, box.getMaxLineHeight());
          }
      }
docs: Updates the line box sizes according to a new inline box.
  @param box the new box