| Index: Source/core/css/CSSSelectorList.cpp
|
| diff --git a/Source/core/css/CSSSelectorList.cpp b/Source/core/css/CSSSelectorList.cpp
|
| index 95a690526da0cab5c4f582947d0aa5dadb02b7d3..71ebc1e6501a60aa0d052cde24c0f766f1d48c94 100644
|
| --- a/Source/core/css/CSSSelectorList.cpp
|
| +++ b/Source/core/css/CSSSelectorList.cpp
|
| @@ -153,11 +153,10 @@ class SelectorNeedsNamespaceResolutionFunctor {
|
| public:
|
| bool operator()(const CSSSelector& selector)
|
| {
|
| - if (selector.match() == CSSSelector::Tag && selector.tagQName().prefix() != nullAtom && selector.tagQName().prefix() != starAtom)
|
| - return true;
|
| - if (selector.isAttributeSelector() && selector.attribute().prefix() != nullAtom && selector.attribute().prefix() != starAtom)
|
| - return true;
|
| - return false;
|
| + if (selector.match() != CSSSelector::Tag && !selector.isAttributeSelector())
|
| + return false;
|
| + const AtomicString& prefix = selector.isAttributeSelector() ? selector.attribute().prefix() : selector.tagQName().prefix();
|
| + return prefix != nullAtom && prefix != emptyAtom && prefix != starAtom;
|
| }
|
| };
|
|
|
|
|