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

Not caching window.innerWidth used to trigger more reflows, but I can't replicate it.
However we still need it as a method on FontSizeUtils to allow mocking.