Unreviewed build fix (fixes warning about too many parens).
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 17:52:44 +0000 (17:52 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 17:52:44 +0000 (17:52 +0000)
* rendering/RenderBox.cpp:
(WebCore::RenderBox::computePositionedLogicalWidthReplaced):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95737 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp

index e03d39d..b103c68 100644 (file)
@@ -1,3 +1,10 @@
+2011-09-22  Tim Horton  <timothy_horton@apple.com>
+
+        Unreviewed build fix (fixes warning about too many parens).
+
+        * rendering/RenderBox.cpp:
+        (WebCore::RenderBox::computePositionedLogicalWidthReplaced):
+
 2011-09-22  Anders Carlsson  <andersca@apple.com>
 
         Widget::frameRect shouldn't be virtual
index 49f7bfa..b1f0f9a 100644 (file)
@@ -2951,7 +2951,7 @@ void RenderBox::computePositionedLogicalWidthReplaced()
         logicalRightValue = logicalRight.calcValue(containerLogicalWidth);
         logicalLeftValue = logicalLeft.calcValue(containerLogicalWidth);
         // If the containing block is right-to-left, then push the left position as far to the right as possible
-        if ((containerDirection == RTL)) {
+        if (containerDirection == RTL) {
             int totalLogicalWidth = logicalWidth() + logicalLeftValue + logicalRightValue +  marginLogicalLeftAlias + marginLogicalRightAlias;
             logicalLeftValue = containerLogicalWidth - (totalLogicalWidth - logicalLeftValue);
         }