From: Rob Arnold <robarnold@cs.cmu.edu>
authorRob Arnold <robarnold@cs.cmu.edu>
Wed, 09 Jun 2010 22:08:00 -0400
changeset 43483 01f4a0bad338d689bdbff88e292de84378aba98d
parent 43482 dd7bb545e0bed8600abc3d231aad6e6b6192a503
child 43484 535903851195238a7b856e641fb25fe6e963a450
push id13730
push userCallek@gmail.com
push dateThu, 10 Jun 2010 22:24:03 +0000
treeherdermozilla-central@01f4a0bad338 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs561835
milestone1.9.3a6pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
From: Rob Arnold <robarnold@cs.cmu.edu> Bug 561835 - Make tab contents' canvases opaque r=dao
browser/components/wintaskbar/WindowsPreviewPerTab.jsm
--- a/browser/components/wintaskbar/WindowsPreviewPerTab.jsm
+++ b/browser/components/wintaskbar/WindowsPreviewPerTab.jsm
@@ -156,18 +156,21 @@ function PreviewController(win, tab) {
   this.linkedBrowser.addEventListener("MozAfterPaint", this, false);
   this.linkedBrowser.addEventListener("DOMTitleChanged", this, false);
   // pageshow is needed for when a tab is dragged across windows.
   this.linkedBrowser.addEventListener("pageshow", this, false);
 
   // 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 () {
       let dirtyRegion = Cc["@mozilla.org/gfx/region;1"]
                        .createInstance(Ci.nsIScriptableRegion);
       dirtyRegion.init();
       return dirtyRegion;
     });