Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index 61a3d3974d5510428fc1ae00e00f30a0857296ed..c35f154fd81cdb6d015e4ea478b9121db9dec279 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -1294,7 +1294,7 @@ void HTMLInputElement::setMaxLength(int maxLength, ExceptionState& exceptionStat |
if (maxLength < 0) |
exceptionState.throwUninformativeAndGenericDOMException(IndexSizeError); |
else |
- setAttribute(maxlengthAttr, String::number(maxLength)); |
+ setIntegralAttribute(maxlengthAttr, maxLength); |
} |
bool HTMLInputElement::multiple() const |
@@ -1304,7 +1304,7 @@ bool HTMLInputElement::multiple() const |
void HTMLInputElement::setSize(unsigned size) |
{ |
- setAttribute(sizeAttr, String::number(size)); |
+ setUnsignedIntegralAttribute(sizeAttr, size); |
} |
void HTMLInputElement::setSize(unsigned size, ExceptionState& exceptionState) |
@@ -1766,12 +1766,12 @@ unsigned HTMLInputElement::width() const |
void HTMLInputElement::setHeight(unsigned height) |
{ |
- setAttribute(heightAttr, String::number(height)); |
+ setUnsignedIntegralAttribute(heightAttr, height); |
} |
void HTMLInputElement::setWidth(unsigned width) |
{ |
- setAttribute(widthAttr, String::number(width)); |
+ setUnsignedIntegralAttribute(widthAttr, width); |
} |
PassOwnPtr<ListAttributeTargetObserver> ListAttributeTargetObserver::create(const AtomicString& id, HTMLInputElement* element) |