Bug 596941 - Tap Highlighting blue glow can be cut on the left [r=stechz]
authorVivien Nicolas <21@vingtetun.org>
Thu, 16 Sep 2010 19:27:27 +0200
changeset 2017 1e98355fc79d2c9771a6934db771abc9c3eee13f
parent 2016 a292fad385ac2e6a2dfc1c56c326af3333e025c7
child 2018 9f60caa860b3085b5619fc72b228b073d506d064
push id1721
push uservnicolas@mozilla.com
push dateThu, 16 Sep 2010 17:27:41 +0000
reviewersstechz
bugs596941
Bug 596941 - Tap Highlighting blue glow can be cut on the left [r=stechz]
chrome/content/browser-ui.js
--- a/chrome/content/browser-ui.js
+++ b/chrome/content/browser-ui.js
@@ -1055,24 +1055,21 @@ var TapHighlightHelper = {
     delete this._overlay;
     return this._overlay = document.getElementById("content-overlay");
   },
 
   show: function show(aRects) {
     let browser = getBrowser();
     let scroll = browser.getPosition();
 
-    let union = aRects.reduce(function(a, b) {
+    let canvasArea = aRects.reduce(function(a, b) {
       return a.expandToContain(b);
     }, new Rect(0, 0, 0, 0)).map(function(val) val * browser.scale)
                             .translate(-scroll.x, -scroll.y);
 
-    let vis = Rect.fromRect(browser.getBoundingClientRect());
-    let canvasArea = vis.intersect(union);
-
     let overlay = this._overlay;
     overlay.width = canvasArea.width;
     overlay.style.width = canvasArea.width + "px";
     overlay.height = canvasArea.height;
     overlay.style.height = canvasArea.height + "px";
 
     let ctx = overlay.getContext("2d");
     ctx.save();