Bug 616081 - Make possible to set gDumpPaintList as true with ENV variable in debu builds. r=roc a=approval2.0
authorOleg Romashin <romaxa@gmail.com>
Sat, 04 Dec 2010 00:11:03 +0200
changeset 58581 dff69338ba79852d62502e212a243de2ded5c358
parent 58580 557ce7926eba28e6b86b9a8883f106c530ad9601
child 58582 370f95da0cc1959c7ff3df5254d93e3e511cbf39
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersroc, approval2
bugs616081
milestone2.0b8pre
Bug 616081 - Make possible to set gDumpPaintList as true with ENV variable in debu builds. r=roc a=approval2.0
layout/base/nsLayoutUtils.cpp
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -1056,17 +1056,17 @@ nsLayoutUtils::CombineBreakType(PRUint8 
     }
   }
   return breakType;
 }
 
 #ifdef DEBUG
 #include <stdio.h>
 
-static PRBool gDumpPaintList = PR_FALSE;
+static PRBool gDumpPaintList = getenv("MOZ_DUMP_PAINT_LIST") != 0;
 static PRBool gDumpEventList = PR_FALSE;
 #endif
 
 nsIFrame*
 nsLayoutUtils::GetFrameForPoint(nsIFrame* aFrame, nsPoint aPt,
                                 PRBool aShouldIgnoreSuppression,
                                 PRBool aIgnoreRootScrollFrame)
 {