Same fix for calcAbsoluteVerticalValues().
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 May 2006 15:57:23 +0000 (15:57 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 May 2006 15:57:23 +0000 (15:57 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14356 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/rendering/RenderBox.cpp

index ca685df7471f3da53174f267fc6d2879a944c195..6921af6faecb04d343daad19d0d8a89a9e262ae1 100644 (file)
@@ -5,6 +5,7 @@
         * rendering/RenderBox.cpp:
         (WebCore::RenderBox::calcAbsoluteHorizontalValues): Initialize leftValue. 
         This value will never be used, because 'left' and 'right' cannot both be 'auto'.
+        (WebCore::RenderBox::calcAbsoluteVerticalValues): Initialize topValue. 
 
 2006-05-13  Alexey Proskuryakov  <ap@nypop.com>
 
index 924842df7c8162c0b5cd44a1f6abf070c2e48797..4d21917eeb1792f5dac8b223667198459c35a9b9 100644 (file)
@@ -1831,7 +1831,7 @@ void RenderBox::calcAbsoluteVerticalValues(Length height, const RenderObject* co
 
     int contentHeight = m_height - bordersPlusPadding;    
 
-    int topValue;
+    int topValue = 0;
 
     bool heightIsAuto = height.isAuto();
     bool topIsAuto = top.isAuto();