Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 98423ca129562d96abcaaabceb1bef8c0aebdcd3..8cce578bce62d3fccef78664a89583d060d69c56 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -323,7 +323,7 @@ void HTMLSelectElement::parseAttribute(const QualifiedName& name, const AtomicSt |
AtomicString attrSize = AtomicString::number(size); |
if (attrSize != value) { |
// FIXME: This is horribly factored. |
- if (Attribute* sizeAttribute = ensureUniqueElementData().getAttributeItem(sizeAttr)) |
+ if (Attribute* sizeAttribute = ensureUniqueElementData().findAttributeByName(sizeAttr)) |
sizeAttribute->setValue(attrSize); |
} |
size = max(size, 1); |