From: Rob Arnold <robarnold@cs.cmu.edu>

Bug 561835 - Make tab contents' canvases opaque r=dao
This commit is contained in:
Rob Arnold 2010-06-09 22:08:00 -04:00
parent 6806f73a8a
commit abbe0879ca

View File

@ -161,8 +161,11 @@ function PreviewController(win, tab) {
// Cannot perform the lookup during construction. See TabWindow.newTab
XPCOMUtils.defineLazyGetter(this, "preview", function () this.win.previewFromTab(this.tab));
XPCOMUtils.defineLazyGetter(this, "canvasPreview", function ()
this.win.win.document.createElementNS("http://www.w3.org/1999/xhtml", "canvas"));
XPCOMUtils.defineLazyGetter(this, "canvasPreview", function () {
let canvas = this.win.win.document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
canvas.mozOpaque = true;
return canvas;
});
XPCOMUtils.defineLazyGetter(this, "dirtyRegion",
function () {