Bug 685082 - Transparent plugins not cleared on Maemo; r=cjones
authorOleg Romashin <romaxa@gmail.com>
Wed, 14 Sep 2011 08:51:24 +0100
changeset 76937 524cd2f17723b46fb1323a79c18412f1bbe9dc0c
parent 76936 c576f8acafd63f71893b56f72634a0975d00ebe5
child 76938 f794c079cf86d1ca1a7f78de8aa4c7fa7d5e257d
push id1907
push userbmo@edmorley.co.uk
push dateWed, 14 Sep 2011 07:52:21 +0000
treeherdermozilla-inbound@f794c079cf86 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs685082
milestone9.0a1
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
Bug 685082 - Transparent plugins not cleared on Maemo; r=cjones
gfx/layers/basic/BasicLayers.cpp
--- a/gfx/layers/basic/BasicLayers.cpp
+++ b/gfx/layers/basic/BasicLayers.cpp
@@ -2517,16 +2517,17 @@ BasicShadowableImageLayer::Paint(gfxCont
     BasicManager()->CreatedImageBuffer(BasicManager()->Hold(this),
                                        nsIntSize(mSize.width, mSize.height),
                                        tmpFrontSurface);
   }
 
   nsRefPtr<gfxASurface> backSurface =
     BasicManager()->OpenDescriptor(mBackBuffer);
   nsRefPtr<gfxContext> tmpCtx = new gfxContext(backSurface);
+  tmpCtx->SetOperator(gfxContext::OPERATOR_SOURCE);
   PaintContext(pat,
                nsIntRegion(nsIntRect(0, 0, mSize.width, mSize.height)),
                nsnull, 1.0, tmpCtx);
 
   BasicManager()->PaintedImage(BasicManager()->Hold(this),
                                mBackBuffer);
 }