private static void shiftBoxInternal(final RenderBox box, final long amount)
{
RenderNode node = box.getFirstChild();
while (node != null)
{
node.shiftCached(amount);
if ((node.getNodeType() & LayoutNodeTypes.MASK_BOX) == LayoutNodeTypes.MASK_BOX)
{
CacheBoxShifter.shiftBoxInternal((RenderBox) node, amount);
}
node = node.getNext();