| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index 233384b9aad6835862fb4ed61aec4d26020f65d2..9078c6e92d0555b5ccb433fdd73498f4ec333548 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -453,11 +453,12 @@ void HTMLInputElement::updateType()
|
|
|
| if (didRespectHeightAndWidth != m_inputType->shouldRespectHeightAndWidthAttributes()) {
|
| ASSERT(elementData());
|
| - if (const Attribute* height = findAttributeByName(heightAttr))
|
| + AttributeCollection attributes = this->attributes();
|
| + if (const Attribute* height = attributes.find(heightAttr))
|
| attributeChanged(heightAttr, height->value());
|
| - if (const Attribute* width = findAttributeByName(widthAttr))
|
| + if (const Attribute* width = attributes.find(widthAttr))
|
| attributeChanged(widthAttr, width->value());
|
| - if (const Attribute* align = findAttributeByName(alignAttr))
|
| + if (const Attribute* align = attributes.find(alignAttr))
|
| attributeChanged(alignAttr, align->value());
|
| }
|
|
|
|
|