| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index e5a7d3d102172f7c1d032d28ad67c591dc7fada8..a2423bc75fa03a2ee5aa03d619a2bba17ae572a8 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -726,8 +726,10 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
|
| parseMinLengthAttribute(value);
|
| } else if (name == sizeAttr) {
|
| int oldSize = m_size;
|
| - int valueAsInteger = value.toInt();
|
| - m_size = valueAsInteger > 0 ? valueAsInteger : defaultSize;
|
| + m_size = defaultSize;
|
| + int valueAsInteger;
|
| + if (!value.isEmpty() && parseHTMLInteger(value, valueAsInteger) && valueAsInteger > 0)
|
| + m_size = valueAsInteger;
|
| if (m_size != oldSize && renderer())
|
| renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
|
| } else if (name == altAttr)
|
|
|