From 10c1f3fd10c1365d23c071109094c12df9fcf68c Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 5 Jul 2011 12:20:06 +0200 Subject: [PATCH] Bug 667298 - Address comment; pending-r=roc --- layout/build/nsLayoutModule.cpp | 2 +- widget/src/windows/TaskbarPreview.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/build/nsLayoutModule.cpp b/layout/build/nsLayoutModule.cpp index c5e66a48199..f8f0c95ad4c 100644 --- a/layout/build/nsLayoutModule.cpp +++ b/layout/build/nsLayoutModule.cpp @@ -1053,7 +1053,7 @@ static const mozilla::Module::ContractIDEntry kLayoutContracts[] = { { NS_HTMLAUDIOELEMENT_CONTRACTID, &kNS_HTMLAUDIOELEMENT_CID }, #endif { "@mozilla.org/content/canvas-rendering-context;1?id=2d", &kNS_CANVASRENDERINGCONTEXT2D_CID }, - { "@mozilla.org/content/canvas-rendering-context;1?id=2dthebes", &kNS_CANVASRENDERINGCONTEXT2DTHEBES_CID }, + { "@mozilla.org/content/2dthebes-canvas-rendering-context;1", &kNS_CANVASRENDERINGCONTEXT2DTHEBES_CID }, { "@mozilla.org/content/canvas-rendering-context;1?id=moz-webgl", &kNS_CANVASRENDERINGCONTEXTWEBGL_CID }, { "@mozilla.org/content/canvas-rendering-context;1?id=experimental-webgl", &kNS_CANVASRENDERINGCONTEXTWEBGL_CID }, { NS_DOC_ENCODER_CONTRACTID_BASE "text/xml", &kNS_TEXT_ENCODER_CID }, diff --git a/widget/src/windows/TaskbarPreview.cpp b/widget/src/windows/TaskbarPreview.cpp index b1a4a836599..7d608d0393f 100644 --- a/widget/src/windows/TaskbarPreview.cpp +++ b/widget/src/windows/TaskbarPreview.cpp @@ -96,9 +96,9 @@ GetRenderingContext(nsIDocShell *shell, gfxASurface *surface, if (!ctx) { // create the canvas rendering context - ctx = do_CreateInstance("@mozilla.org/content/canvas-rendering-context;1?id=2dthebes", &rv); + ctx = do_CreateInstance("@mozilla.org/content/2dthebes-canvas-rendering-context;1", &rv); if (NS_FAILED(rv)) { - NS_WARNING("Could not create nsICanvasRenderingContextInternal for tab previews!"); + NS_WARNING("Could not create nsICanvasRenderingContext2D for tab previews!"); return rv; } NS_ADDREF(ctx);