Index: Source/core/css/SelectorChecker.cpp |
diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp |
index 93df85b4e9c245d58229a8b0be98af02b2e93082..015bda730c7d0c8e77308efb4a7501bc624a78f0 100644 |
--- a/Source/core/css/SelectorChecker.cpp |
+++ b/Source/core/css/SelectorChecker.cpp |
@@ -548,10 +548,8 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context, const Sib |
if (selector.m_match == CSSSelector::Id) |
return element.hasID() && element.idForStyleResolution() == selector.value(); |
- if (selector.isAttributeSelector()) { |
- if (!anyAttributeMatches(element, static_cast<CSSSelector::Match>(selector.m_match), selector)) |
- return false; |
- } |
+ if (selector.isAttributeSelector()) |
+ return anyAttributeMatches(element, static_cast<CSSSelector::Match>(selector.m_match), selector); |
if (selector.m_match == CSSSelector::PseudoClass) { |
// Handle :not up front. |