From 26145a2767bb494bd330307012baebe789c30430 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 9 Oct 2011 20:23:19 +0200 Subject: [PATCH] Bug 693155 - Add parens to clarify operator precedence in TransformFunctionsMatch (nsStyleAnimation.cpp); r=dbaron --- layout/style/nsStyleAnimation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/style/nsStyleAnimation.cpp b/layout/style/nsStyleAnimation.cpp index 76d8a59637c2..7ee7a76805ce 100644 --- a/layout/style/nsStyleAnimation.cpp +++ b/layout/style/nsStyleAnimation.cpp @@ -1360,8 +1360,8 @@ TransformFunctionsMatch(nsCSSKeyword func1, nsCSSKeyword 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;