| Index: third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| index 3416c2386789fce0db221a12c9e35cd4d44c2431..a7d0076401b9f10ed32d8dacc4936e5e1ee31eb4 100644
|
| --- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
|
| @@ -397,9 +397,8 @@ SelectorChecker::Match SelectorChecker::matchForRelation(const SelectorCheckingC
|
| }
|
|
|
| case CSSSelector::SubSelector:
|
| - ASSERT_NOT_REACHED();
|
| + break;
|
| }
|
| -
|
| ASSERT_NOT_REACHED();
|
| return SelectorFailsCompletely;
|
| }
|
| @@ -495,11 +494,9 @@ static bool attributeValueMatches(const Attribute& attributeItem, CSSSelector::M
|
| return false;
|
| return true;
|
| default:
|
| - break;
|
| + ASSERT_NOT_REACHED();
|
| + return false;
|
| }
|
| -
|
| - ASSERT_NOT_REACHED();
|
| - return true;
|
| }
|
|
|
| static bool anyAttributeMatches(Element& element, CSSSelector::MatchType match, const CSSSelector& selector)
|
| @@ -582,15 +579,10 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context, MatchResu
|
| case CSSSelector::PseudoElement:
|
| return checkPseudoElement(context, result);
|
|
|
| - case CSSSelector::PagePseudoClass:
|
| - // FIXME: what?
|
| - return true;
|
| - case CSSSelector::Unknown:
|
| - // FIXME: what?
|
| - return true;
|
| + default:
|
| + ASSERT_NOT_REACHED();
|
| + return false;
|
| }
|
| - ASSERT_NOT_REACHED();
|
| - return true;
|
| }
|
|
|
| bool SelectorChecker::checkPseudoNot(const SelectorCheckingContext& context, MatchResult& result) const
|
|
|