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 66661 5683eaa960b407d268a4a868236dd71206afe803
parent 66660 39637b457f431f5ac06a5cf5c8078cc42710aad5
child 66662 db1051dc93c144d32fdb42d9d1b5bc62fbcbec3e
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstechz
bugs596941
Bug 596941 - Tap Highlighting blue glow can be cut on the left [r=stechz]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/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();