Bug 983812 - Center header text based on amount of available space

FWIW the preferred style for the project is the style used before your changes...

Can you also make your patch align with this preferred style, as there is a lot of places where your indentation is strange :)