| Index: Source/core/css/SelectorChecker.cpp
|
| diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp
|
| index 339598720ed3a329f9be3994a3242b79e71aa153..e7c45376513705b0193fa2276b5c57b308b6d3a1 100644
|
| --- a/Source/core/css/SelectorChecker.cpp
|
| +++ b/Source/core/css/SelectorChecker.cpp
|
| @@ -499,10 +499,10 @@ static bool anyAttributeMatches(Element& element, CSSSelector::Match match, cons
|
|
|
| const AtomicString& selectorValue = selector.value();
|
|
|
| - AttributeIteratorAccessor attributes = element.attributesIterator();
|
| - AttributeConstIterator end = attributes.end();
|
| - for (AttributeConstIterator it = attributes.begin(); it != end; ++it) {
|
| - const Attribute& attributeItem = **it;
|
| + AttributeCollection attributes = element.attributes();
|
| + AttributeCollection::const_iterator end = attributes.end();
|
| + for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) {
|
| + const Attribute& attributeItem = *it;
|
|
|
| if (!attributeItem.matches(selectorAttr))
|
| continue;
|
|
|