Bug 917301 - Remove some dead code in layout/; r=dholbert