* @param box the box that should be processed.
* @return true if the box is new, false otherwise
*/
private boolean updateStaticProperties(final RenderBox box)
{
final BoxDefinition boxDefinition = box.getBoxDefinition();
final StaticBoxLayoutProperties sblp = box.getStaticBoxLayoutProperties();
if (sblp.getNominalBaselineInfo() != null)
{
// mark box as seen ..
box.setStaticBoxPropertiesAge(box.getChangeTracker());
return false;
}
final long parentWidth = ProcessUtility.computeBlockContextWidth(box);
sblp.setMarginTop(boxDefinition.getMarginTop().resolve(parentWidth));
sblp.setMarginLeft(boxDefinition.getMarginLeft().resolve(parentWidth));
sblp.setMarginBottom(boxDefinition.getMarginBottom().resolve(parentWidth));
sblp.setMarginRight(boxDefinition.getMarginRight().resolve(parentWidth));
final Border border = boxDefinition.getBorder();
sblp.setBorderTop(border.getTop().getWidth());
sblp.setBorderLeft(border.getLeft().getWidth());
sblp.setBorderBottom(border.getBottom().getWidth());
sblp.setBorderRight(border.getRight().getWidth());