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 1217 b3ed77e0d9abc7d989c91ec57cfd82e6ca5b6b8b
parent 1216 eed69a83a41dd88bf41a90ef8bcbeb654d054490
child 1218 8545de40c731a52d8c39b40b3ad24067817e7a72
push id1081
push userdougt@mozilla.com
push dateFri, 11 Dec 2009 17:48:34 +0000
reviewerswebapps
bugs534054
Bug 534054 - Black horizontal lines on some sites. Workaround. r=webapps@stechz.com
chrome/content/TileManager.js.in
--- a/chrome/content/TileManager.js.in
+++ b/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();
   },