public BoxAlignContext(RenderBox box)
{
super(box);
ExtendedBaselineInfo baselineInfo = box.getBaselineInfo();
if (baselineInfo == null)
{
baselineInfo = box.getNominalBaselineInfo();
}
final CSSValue dominantBaselineValue = box.getDominantBaseline();
setDominantBaseline(TextUtility.translateDominantBaseline
(dominantBaselineValue, baselineInfo.getDominantBaseline()));
final ComputedLayoutProperties blp = box.getComputedLayoutProperties();
insetsTop = blp.getBorderTop() + blp.getPaddingTop();
insetsBottom = blp.getBorderBottom() + blp.getPaddingBottom();
baselines = (long[]) baselineInfo.getBaselines().clone();
for (int i = 1; i < baselines.length; i++)
{
baselines[i] += insetsTop;
}
baselines[ExtendedBaselineInfo.AFTER_EDGE] =