Twiddle parentheses a little bit. Bug 311415 followup, r+sr=dbaron
authorbzbarsky@mit.edu
Wed, 09 May 2007 19:55:15 -0700
changeset 1334 8be4287dde01f60c103de728d1a0abc55d67cb90
parent 1333 8966ba22468174b320ad14357824fa04a86ad389
child 1335 5bdbf35f58d9118399437cbeaac0634da84a0223
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs311415
milestone1.9a5pre
Twiddle parentheses a little bit. Bug 311415 followup, r+sr=dbaron
layout/generic/nsAbsoluteContainingBlock.cpp
layout/generic/nsLineLayout.cpp
--- a/layout/generic/nsAbsoluteContainingBlock.cpp
+++ b/layout/generic/nsAbsoluteContainingBlock.cpp
@@ -202,18 +202,18 @@ static inline PRBool IsFixedHeight(nsSty
   return aUnit == eStyleUnit_Coord || aUnit == eStyleUnit_Chars;
 }
 
 static inline PRBool IsFixedWidth(const nsStyleCoord& aCoord)
 {
   return aCoord.GetUnit() == eStyleUnit_Coord ||
          aCoord.GetUnit() == eStyleUnit_Chars ||
          (aCoord.GetUnit() == eStyleUnit_Enumerated &&
-          aCoord.GetIntValue() == NS_STYLE_WIDTH_INTRINSIC ||
-          aCoord.GetIntValue() == NS_STYLE_WIDTH_MIN_INTRINSIC);
+          (aCoord.GetIntValue() == NS_STYLE_WIDTH_INTRINSIC ||
+           aCoord.GetIntValue() == NS_STYLE_WIDTH_MIN_INTRINSIC));
 }
 
 static inline PRBool IsFixedMaxWidth(const nsStyleCoord& aCoord)
 {
   return aCoord.GetUnit() == eStyleUnit_Null ||
          IsFixedWidth(aCoord);
 }
 
--- a/layout/generic/nsLineLayout.cpp
+++ b/layout/generic/nsLineLayout.cpp
@@ -702,17 +702,17 @@ HasPercentageUnitSide(const nsStyleSides
 }
 
 inline PRBool
 WidthDependsOnContainer(const nsStyleCoord& aCoord)
 {
   return aCoord.GetUnit() == eStyleUnit_Percent ||
          (aCoord.GetUnit() == eStyleUnit_Enumerated &&
           (aCoord.GetIntValue() == NS_STYLE_WIDTH_FILL ||
-          (aCoord.GetIntValue() == NS_STYLE_WIDTH_SHRINK_WRAP)));
+           aCoord.GetIntValue() == NS_STYLE_WIDTH_SHRINK_WRAP));
 
 }
 
 static PRBool
 IsPercentageAware(const nsIFrame* aFrame)
 {
   NS_ASSERTION(aFrame, "null frame is not allowed");