Bug 831829 - Fix OSX titlebar painting from being upside-down and tiled. r=roc