Index: Source/core/html/HTMLEmbedElement.cpp |
diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp |
index 79dc68a7842e59cab350e71c6a2a345370cb16ac..783c7ada94efbbbe82548ba9a295830b403f3c71 100644 |
--- a/Source/core/html/HTMLEmbedElement.cpp |
+++ b/Source/core/html/HTMLEmbedElement.cpp |
@@ -115,11 +115,11 @@ void HTMLEmbedElement::parametersForPlugin(Vector<String>& paramNames, Vector<St |
if (!hasAttributes()) |
return; |
- unsigned attributeCount = this->attributeCount(); |
- for (unsigned i = 0; i < attributeCount; ++i) { |
- const Attribute& attribute = attributeItem(i); |
- paramNames.append(attribute.localName().string()); |
- paramValues.append(attribute.value().string()); |
+ AttributeIteratorAccessor attributes = attributesIterator(); |
+ AttributeConstIterator end = attributes.end(); |
+ for (AttributeConstIterator it = attributes.begin(); it != end; ++it) { |
+ paramNames.append(it->localName().string()); |
+ paramValues.append(it->value().string()); |
} |
} |