Bug 693155 - Add parens to clarify operator precedence in TransformFunctionsMatch (nsStyleAnimation.cpp); r=dbaron
authorMs2ger <ms2ger@gmail.com>
Sun, 09 Oct 2011 20:23:19 +0200
changeset 78410 e9c620a5c85f5a521a7549e4025972e44afdd072
parent 78409 48781669cee95b8a827ad5b23ff9367bca61ba94
child 78411 39e41a138c0b0b4e5409c76984d334cf89d412e8
child 78478 6c6170a6e481de41c124f28f50c005647386d40e
child 78537 6e945f23126536783fce6ef618162f48b1491ea9
push id21293
push userMs2ger@gmail.com
push dateSun, 09 Oct 2011 18:25:19 +0000
treeherdermozilla-central@e9c620a5c85f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs693155
milestone10.0a1
first release with
nightly linux32
e9c620a5c85f / 10.0a1 / 20111010031016 / files
nightly linux64
e9c620a5c85f / 10.0a1 / 20111010031016 / files
nightly mac
e9c620a5c85f / 10.0a1 / 20111010031016 / files
nightly win32
e9c620a5c85f / 10.0a1 / 20111010031016 / files
nightly win64
e9c620a5c85f / 10.0a1 / 20111010031016 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 693155 - Add parens to clarify operator precedence in TransformFunctionsMatch (nsStyleAnimation.cpp); r=dbaron
layout/style/nsStyleAnimation.cpp
--- a/layout/style/nsStyleAnimation.cpp
+++ b/layout/style/nsStyleAnimation.cpp
@@ -1355,18 +1355,18 @@ AddDifferentTransformLists(const nsCSSVa
 
 static bool
 TransformFunctionsMatch(nsCSSKeyword func1, nsCSSKeyword func2)
 {
   if (func1 == func2) {
     return PR_TRUE;
   }
 
-  if (func1 == eCSSKeyword_rotatez && func2 == eCSSKeyword_rotate ||
-      func1 == eCSSKeyword_rotate && func2 == eCSSKeyword_rotatez) {
+  if ((func1 == eCSSKeyword_rotatez && func2 == eCSSKeyword_rotate) ||
+      (func1 == eCSSKeyword_rotate && func2 == eCSSKeyword_rotatez)) {
     return PR_TRUE;
   }
   return PR_FALSE;
 }
 
 static nsCSSValueList*
 AddTransformLists(const nsCSSValueList* aList1, double aCoeff1,
                   const nsCSSValueList* aList2, double aCoeff2)