Bug 953961 - Redundant if condition within nsMathMLTokenFrame::GetMathMLFrameType(). r=fredw
authorJames Kitchener <jkitch.bug@gmail.com>
Thu, 02 Jan 2014 10:50:14 -0500
changeset 161951 74e8fb9b00b077f1af208712db6afd750086efe8
parent 161950 05eea186ef5cea059802d5b20a8fed05accffbb8
child 161952 709faef751b8f925d2e2c32deafaaf756d5c7d8c
push id25919
push userryanvm@gmail.com
push dateThu, 02 Jan 2014 20:50:23 +0000
treeherdermozilla-central@098c85bfc598 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfredw
bugs953961
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 953961 - Redundant if condition within nsMathMLTokenFrame::GetMathMLFrameType(). r=fredw
layout/mathml/nsMathMLTokenFrame.cpp
--- a/layout/mathml/nsMathMLTokenFrame.cpp
+++ b/layout/mathml/nsMathMLTokenFrame.cpp
@@ -39,17 +39,16 @@ nsMathMLTokenFrame::GetMathMLFrameType()
     return eMathMLFrameType_Ordinary;
   }
 
   uint8_t mathVariant = StyleFont()->mMathVariant;
   if ((mathVariant == NS_MATHML_MATHVARIANT_NONE &&
        (StyleFont()->mFont.style == NS_STYLE_FONT_STYLE_ITALIC ||
         HasAnyStateBits(TEXT_IS_IN_SINGLE_CHAR_MI))) ||
       mathVariant == NS_MATHML_MATHVARIANT_ITALIC ||
-      mathVariant == NS_MATHML_MATHVARIANT_ITALIC ||
       mathVariant == NS_MATHML_MATHVARIANT_BOLD_ITALIC ||
       mathVariant == NS_MATHML_MATHVARIANT_SANS_SERIF_ITALIC ||
       mathVariant == NS_MATHML_MATHVARIANT_SANS_SERIF_BOLD_ITALIC) {
     return eMathMLFrameType_ItalicIdentifier;
   }
   return eMathMLFrameType_UprightIdentifier;
 }