Bug 1047660 - Making the software home button and the edge gestures play nice in landscape

(nit) What about:

var button = document.mozFullScreenElement ? this.fullscreenHomeButton : this.homeButton;
this._buttonRect = button.getBoundingClientRect();