Bug 922410: Consolidate loops in MainAxisPositionTracker constructor. r=mats