Bug 491415. Need to initialize this member so we don't report bogus ascents. r+sr=roc
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 05 May 2009 01:01:47 -0400
changeset 27983 1a8155f3f573cac9d20dc3a405c27ce28f75e3af
parent 27982 b78e21f29c5128608cb5f133661267160aa373e1
child 27984 7ef08c5305178d97b2c4a80ace60aa63731a4211
push id6824
push userbzbarsky@mozilla.com
push dateTue, 05 May 2009 05:02:33 +0000
treeherdermozilla-central@1a8155f3f573 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs491415
milestone1.9.2a1pre
Bug 491415. Need to initialize this member so we don't report bogus ascents. r+sr=roc
layout/generic/nsLineBox.cpp
--- a/layout/generic/nsLineBox.cpp
+++ b/layout/generic/nsLineBox.cpp
@@ -53,16 +53,17 @@
 #ifdef DEBUG
 static PRInt32 ctorCount;
 PRInt32 nsLineBox::GetCtorCount() { return ctorCount; }
 #endif
 
 nsLineBox::nsLineBox(nsIFrame* aFrame, PRInt32 aCount, PRBool aIsBlock)
   : mFirstChild(aFrame),
     mBounds(0, 0, 0, 0),
+    mAscent(0),
     mData(nsnull)
 {
   MOZ_COUNT_CTOR(nsLineBox);
 #ifdef DEBUG
   ++ctorCount;
   NS_ASSERTION(!aIsBlock || aCount == 1, "Blocks must have exactly one child");
   nsIFrame* f = aFrame;
   for (PRInt32 n = aCount; n > 0; f = f->GetNextSibling(), --n) {