Index: Source/core/css/SelectorChecker.cpp |
diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp |
index bb479886159e9b16a0a9756ee411dd8844b9e1f6..a79432c299c818969626fcd41b98b8947efd7c27 100644 |
--- a/Source/core/css/SelectorChecker.cpp |
+++ b/Source/core/css/SelectorChecker.cpp |
@@ -467,10 +467,7 @@ static bool anyAttributeMatches(Element& element, CSSSelector::Match match, cons |
bool caseInsensitive = selector.attributeMatchType() == CSSSelector::CaseInsensitive; |
AttributeCollection attributes = element.attributesWithoutUpdate(); |
- AttributeCollection::iterator end = attributes.end(); |
- for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
- const Attribute& attributeItem = *it; |
- |
+ for (const auto& attributeItem: attributes) { |
if (!attributeItem.matches(selectorAttr)) |
continue; |