| Index: Source/core/css/SelectorChecker.cpp
|
| diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp
|
| index e1c75c37da6af45b1bd2bcb5daf6561892587cfb..7dbc1f69849e290ff350b5cbcb62cb2f52f279e9 100644
|
| --- a/Source/core/css/SelectorChecker.cpp
|
| +++ b/Source/core/css/SelectorChecker.cpp
|
| @@ -440,7 +440,8 @@ static bool anyAttributeMatches(Element& element, CSSSelector::Match match, cons
|
|
|
| const AtomicString& selectorValue = selector.value();
|
|
|
| - for (size_t i = 0; i < element.attributeCount(); ++i) {
|
| + unsigned attributeCount = element.attributeCount();
|
| + for (size_t i = 0; i < attributeCount; ++i) {
|
| const Attribute* attributeItem = element.attributeItem(i);
|
|
|
| if (!attributeItem->matches(selectorAttr))
|
|
|