Merge "After trimming, set the footprint to the number of pages in use." into gingerbread