Index: Source/core/html/HTMLTextAreaElement.cpp |
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp |
index cd8c6eff88ee2e2287020cd402bed0eb14caed60..0c5593f1f38b30985ba02b6390b5ac80682f6833 100644 |
--- a/Source/core/html/HTMLTextAreaElement.cpp |
+++ b/Source/core/html/HTMLTextAreaElement.cpp |
@@ -433,7 +433,7 @@ void HTMLTextAreaElement::setMaxLength(int newValue, ExceptionState& exceptionSt |
if (newValue < 0) |
exceptionState.throwUninformativeAndGenericDOMException(IndexSizeError); |
else |
- setAttribute(maxlengthAttr, String::number(newValue)); |
+ setIntegralAttribute(maxlengthAttr, newValue); |
} |
String HTMLTextAreaElement::validationMessage() const |
@@ -488,12 +488,12 @@ void HTMLTextAreaElement::accessKeyAction(bool) |
void HTMLTextAreaElement::setCols(int cols) |
{ |
- setAttribute(colsAttr, String::number(cols)); |
+ setIntegralAttribute(colsAttr, cols); |
} |
void HTMLTextAreaElement::setRows(int rows) |
{ |
- setAttribute(rowsAttr, String::number(rows)); |
+ setIntegralAttribute(rowsAttr, rows); |
} |
bool HTMLTextAreaElement::shouldUseInputMethod() |