Bug 534054 - Black horizontal lines on some sites. Workaround. r=webapps@stechz.com
authorDoug Turner <dougt@dougt.org>
Fri, 11 Dec 2009 09:47:24 -0800
changeset 65905 aa878d06dbade64c4b77f3364d34fecac5395690
parent 65904 d65ef1fb4e7e7c511484a60a7d5b6b1c069ed408
child 65906 f013d8374696910c7c09e57fbd8aa267022b2e75
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)
reviewerswebapps
bugs534054
Bug 534054 - Black horizontal lines on some sites. Workaround. r=webapps@stechz.com
mobile/chrome/content/TileManager.js.in
--- a/mobile/chrome/content/TileManager.js.in
+++ b/mobile/chrome/content/TileManager.js.in
@@ -849,19 +849,20 @@ TileManager.Tile.prototype = {
 
     browserView.viewportToBrowserRect(rect);
 
     let ctx = this._canvas.getContext("2d");
     ctx.save();
 
     ctx.translate(x, y);
     browserView.browserToViewportCanvasContext(ctx);
+    // We expand the rect to working around a gfx issue (bug 534054)
     ctx.drawWindow(browserView._contentWindow,
-                   rect.left, rect.top,
-                   rect.right - rect.left, rect.bottom - rect.top,
+                   rect.left - 1 , rect.top - 1,
+                   rect.right - rect.left + 1, rect.bottom - rect.top + 1,
                    "white",
                    (ctx.DRAWWINDOW_DRAW_CARET));
 
     ctx.restore();
 
     this.unmarkDirty();
   },