Index: Source/core/dom/PresentationAttributeStyle.cpp |
diff --git a/Source/core/dom/PresentationAttributeStyle.cpp b/Source/core/dom/PresentationAttributeStyle.cpp |
index c9413c5a8584e53572cbc9bd4576c2b7719ca8f1..dc2c1c95d3e6ada01bd15b18a7389f81dc6c6259 100644 |
--- a/Source/core/dom/PresentationAttributeStyle.cpp |
+++ b/Source/core/dom/PresentationAttributeStyle.cpp |
@@ -124,9 +124,9 @@ static void makePresentationAttributeCacheKey(Element& element, PresentationAttr |
// Interpretation of the size attributes on <input> depends on the type attribute. |
if (isHTMLInputElement(element)) |
return; |
- AttributeIteratorAccessor attributes = element.attributesIterator(); |
- AttributeConstIterator end = attributes.end(); |
- for (AttributeConstIterator it = attributes.begin(); it != end; ++it) { |
+ AttributeCollection attributes = element.attributes(); |
+ AttributeCollection::const_iterator end = attributes.end(); |
+ for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) { |
if (!element.isPresentationAttribute(it->name())) |
continue; |
if (!it->namespaceURI().isNull()) |
@@ -179,9 +179,9 @@ PassRefPtr<StylePropertySet> computePresentationAttributeStyle(Element& element) |
cacheCleaner.didHitPresentationAttributeCache(); |
} else { |
style = MutableStylePropertySet::create(element.isSVGElement() ? SVGAttributeMode : HTMLAttributeMode); |
- AttributeIteratorAccessor attributes = element.attributesIterator(); |
- AttributeConstIterator end = attributes.end(); |
- for (AttributeConstIterator it = attributes.begin(); it != end; ++it) |
+ AttributeCollection attributes = element.attributes(); |
+ AttributeCollection::const_iterator end = attributes.end(); |
+ for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) |
element.collectStyleForPresentationAttribute(it->name(), it->value(), toMutableStylePropertySet(style)); |
} |