let's use the right #ifdef here so this actually works; mobile fix, r=stuart
authorVladimir Vukicevic <vladimir@pobox.com>
Fri, 10 Oct 2008 15:30:52 -0700
changeset 20282 13098edfa017f100d08e87a7b5e116b74720a35c
parent 20281 c6e5382e72e159dc2fd37db2e16638d4c1bd03c3
child 20283 a6a684a3c0c989ddfde5218b9826b21fdb7cdbf7
push id2769
push uservladimir@mozilla.com
push dateFri, 10 Oct 2008 22:31:04 +0000
treeherdermozilla-central@13098edfa017 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstuart
milestone1.9.1b2pre
let's use the right #ifdef here so this actually works; mobile fix, r=stuart
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -4912,17 +4912,17 @@ PresShell::RenderDocument(const nsRect& 
   NS_ENSURE_TRUE(!aUntrusted, NS_ERROR_NOT_IMPLEMENTED);
 
   gfxRect r(0, 0,
             nsPresContext::AppUnitsToFloatCSSPixels(aRect.width),
             nsPresContext::AppUnitsToFloatCSSPixels(aRect.height));
   aThebesContext->Save();
 
   aThebesContext->NewPath();
-#ifdef MOZ_GFX_MOBILE_OPTIMIZE
+#ifdef MOZ_GFX_OPTIMIZE_MOBILE
   aThebesContext->Rectangle(r, PR_TRUE);
 #else
   aThebesContext->Rectangle(r);
 #endif
   aThebesContext->Clip();
 
   // we can avoid using a temporary surface if we're using OPERATOR_OVER
   // and our background color has no alpha (so we'll be compositing on top