Bug 801566 - Fix building with --disable-debug and --enable-dump-painting. r=mattwoodrow
authorChris Lord <chrislord.net@gmail.com>
Mon, 15 Oct 2012 19:56:11 +0100
changeset 110308 f4b63574e768ed355231877560fc347c9e9c6285
parent 110307 8595e313fc21a8612c18c5c2b03be292dbc2b8f7
child 110309 9cf34ca3d81c22f023815fc5b9f8aa8f9d14b1e3
push id16459
push userchrislord.net@gmail.com
push dateMon, 15 Oct 2012 18:56:22 +0000
treeherdermozilla-inbound@f4b63574e768 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs801566
milestone19.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 801566 - Fix building with --disable-debug and --enable-dump-painting. r=mattwoodrow Change #ifdef DEBUG to MOZ_DUMP_PAINTING for function AppUnitsPerDevPixel.
layout/base/FrameLayerBuilder.cpp
--- a/layout/base/FrameLayerBuilder.cpp
+++ b/layout/base/FrameLayerBuilder.cpp
@@ -1338,17 +1338,17 @@ ContainerState::CreateOrRecycleThebesLay
   } else if (didResetScrollPositionForLayerPixelAlignment) {
     data->mActiveScrolledRootPosition = activeScrolledRootTopLeft;
   }
 #endif
 
   return layer.forget();
 }
 
-#ifdef DEBUG
+#ifdef MOZ_DUMP_PAINTING
 /**
  * Returns the appunits per dev pixel for the item's frame. The item must
  * have a frame because only nsDisplayClip items don't have a frame,
  * and those items are flattened away by ProcessDisplayItems.
  */
 static int32_t
 AppUnitsPerDevPixel(nsDisplayItem* aItem)
 {