Bug 780728: Remove unused variable 'pixelRect' from nsDisplayCanvasBackground::Paint(). r=mattwoodrow
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 06 Aug 2012 14:55:41 -0700
changeset 101606 0bd439a357b7ac44658a78e32488690df311edbb
parent 101605 9d5f326881c7fc54f1a960658b66b93c6323c96b
child 101607 5e1f90ff980e77abac85e63b27442a8967a8bee8
push id23245
push useremorley@mozilla.com
push dateTue, 07 Aug 2012 13:39:24 +0000
treeherdermozilla-central@2637d896de91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs780728
milestone17.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 780728: Remove unused variable 'pixelRect' from nsDisplayCanvasBackground::Paint(). r=mattwoodrow
layout/generic/nsCanvasFrame.cpp
--- a/layout/generic/nsCanvasFrame.cpp
+++ b/layout/generic/nsCanvasFrame.cpp
@@ -204,17 +204,16 @@ nsDisplayCanvasBackground::Paint(nsDispl
   nsRect bgClipRect = frame->CanvasArea() + offset;
   if (NS_GET_A(mExtraBackgroundColor) > 0) {
     aCtx->SetColor(mExtraBackgroundColor);
     aCtx->FillRect(bgClipRect);
   }
 
   bool snap;
   nsRect bounds = GetBounds(aBuilder, &snap);
-  nsIntRect pixelRect = bounds.ToOutsidePixels(mFrame->PresContext()->AppUnitsPerDevPixel());
   nsRenderingContext context;
   nsRefPtr<gfxContext> dest = aCtx->ThebesContext();
   nsRefPtr<gfxASurface> surf;
   nsRefPtr<gfxContext> ctx;
 #ifndef MOZ_GFX_OPTIMIZE_MOBILE
   if (IsSingleFixedPositionImage(aBuilder, bgClipRect) && aBuilder->IsPaintingToWindow() && !aBuilder->IsCompositingCheap()) {
     surf = static_cast<gfxASurface*>(GetUnderlyingFrame()->Properties().Get(nsIFrame::CachedBackgroundImage()));
     nsRefPtr<gfxASurface> destSurf = dest->CurrentSurface();