From 946dbec82f6620ebef81322e2d17dc368387eaa4 Mon Sep 17 00:00:00 2001 From: ap Date: Sat, 13 May 2006 16:19:24 +0000 Subject: [PATCH] Ok, now RenderBox.cpp actually compiles for me. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14357 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebCore/ChangeLog | 3 ++- WebCore/rendering/RenderBox.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index 6921af6faecb..33ccb633f261 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,11 +1,12 @@ 2006-05-13 Alexey Proskuryakov - Try to fix release build. + Fix release build. * 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. + (WebCore::RenderBox::calcAbsoluteVerticalReplaced): Same changes as above. 2006-05-13 Alexey Proskuryakov diff --git a/WebCore/rendering/RenderBox.cpp b/WebCore/rendering/RenderBox.cpp index 4d21917eeb17..bb9f3c9a9e31 100644 --- a/WebCore/rendering/RenderBox.cpp +++ b/WebCore/rendering/RenderBox.cpp @@ -2021,8 +2021,8 @@ void RenderBox::calcAbsoluteHorizontalReplaced() * ('rtl'), set 'margin-left' ('margin-right') to zero and solve for * 'margin-right' ('margin-left'). \*-----------------------------------------------------------------------*/ - int leftValue; - int rightValue; + int leftValue = 0; + int rightValue = 0; if (marginLeft.isAuto() && marginRight.isAuto()) { // 'left' and 'right' cannot be 'auto' due to step 3 @@ -2163,8 +2163,8 @@ void RenderBox::calcAbsoluteVerticalReplaced() * 'auto', solve the equation under the extra constraint that the two * margins must get equal values. \*-----------------------------------------------------------------------*/ - int topValue; - int bottomValue; + int topValue = 0; + int bottomValue = 0; if (marginTop.isAuto() && marginBottom.isAuto()) { // 'top' and 'bottom' cannot be 'auto' due to step 2 and 3 combinded. -- 2.36.0