From a8297ad818f0ac6413d3ebd4ecb875271b52da04 Mon Sep 17 00:00:00 2001 From: Jet Villegas Date: Fri, 25 Jan 2013 00:22:16 -0500 Subject: [PATCH] Bug 832696 - gfx gets prefs in the plugin process r=jmuizelaar --- dom/plugins/ipc/PluginInstanceChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/plugins/ipc/PluginInstanceChild.cpp b/dom/plugins/ipc/PluginInstanceChild.cpp index 52053f020cde..069e8dfcf854 100644 --- a/dom/plugins/ipc/PluginInstanceChild.cpp +++ b/dom/plugins/ipc/PluginInstanceChild.cpp @@ -3333,7 +3333,7 @@ PluginInstanceChild::PaintRectToSurface(const nsIntRect& aRect, if (mIsTransparent && !CanPaintOnBackground()) { // Clear surface content for transparent rendering nsRefPtr ctx = new gfxContext(renderSurface); - ctx->SetColor(aColor); + ctx->SetDeviceColor(aColor); ctx->SetOperator(gfxContext::OPERATOR_SOURCE); ctx->Rectangle(GfxFromNsRect(plPaintRect)); ctx->Fill();