Bug 1171368 - Fix -Wunreachable-code-break warning in layout/style/nsCSSRuleProcessor.cpp. r=dholbert
authorChris Peterson <cpeterson@mozilla.com>
Wed, 03 Jun 2015 23:12:24 -0700
changeset 278094 1e76ec5ebbb5b7db36d2d97101eff458bad1269f
parent 278093 71fe4f0920dcdb9ebefdaf36cc230799d04ec2c7
child 278095 882f1779b4d8c2a428a5cde9a04f82453a5c4bbf
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1171368
milestone41.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 1171368 - Fix -Wunreachable-code-break warning in layout/style/nsCSSRuleProcessor.cpp. r=dholbert
layout/style/nsCSSRuleProcessor.cpp
--- a/layout/style/nsCSSRuleProcessor.cpp
+++ b/layout/style/nsCSSRuleProcessor.cpp
@@ -1886,20 +1886,18 @@ static bool SelectorMatches(Element* aEl
               }
               begin = end + 1;
             }
             if (begin < len) {
               // This pseudo-class matched
               break;
             }
           }
-
-          return false;
         }
-        break;
+        return false;
 
       case nsCSSPseudoClasses::ePseudoClass_mozBoundElement:
         if (aTreeMatchContext.mScopedRoot != aElement) {
           return false;
         }
         break;
 
       case nsCSSPseudoClasses::ePseudoClass_root: