Chromium Code Reviews| Index: Source/core/dom/ElementData.cpp |
| diff --git a/Source/core/dom/ElementData.cpp b/Source/core/dom/ElementData.cpp |
| index c7c8e6cc052d95f3524ad6369da62f81d69e9623..551ac38ed3653ff30bce2e1dc6367b87f0e56045 100644 |
| --- a/Source/core/dom/ElementData.cpp |
| +++ b/Source/core/dom/ElementData.cpp |
| @@ -114,10 +114,9 @@ bool ElementData::isEquivalent(const ElementData* other) const |
| if (attributes.size() != otherAttributes.size()) |
| return false; |
| - AttributeCollection::iterator end = attributes.end(); |
| - for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
| - const Attribute* otherAttr = otherAttributes.find(it->name()); |
| - if (!otherAttr || it->value() != otherAttr->value()) |
| + for (auto attribute : attributes) { |
|
dcheng
2014/12/16 19:52:51
Please don't use bare 'auto'; without looking at A
zhaoze.zhou
2014/12/16 23:27:57
Done.
|
| + const Attribute* otherAttr = otherAttributes.find(attribute.name()); |
| + if (!otherAttr || attribute.value() != otherAttr->value()) |
| return false; |
| } |
| return true; |