Index: Source/core/html/HTMLTextAreaElement.cpp |
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp |
index aee74dfd44c484d1eb9d6286225aeba93da99afc..160c4e6d12689dc69ec4b59f1a3fd3a0116a0f86 100644 |
--- a/Source/core/html/HTMLTextAreaElement.cpp |
+++ b/Source/core/html/HTMLTextAreaElement.cpp |
@@ -442,7 +442,7 @@ void HTMLTextAreaElement::setDefaultValue(const String& defaultValue) |
int HTMLTextAreaElement::maxLength() const |
{ |
bool ok; |
- int value = getAttribute(maxlengthAttr).string().toInt(&ok); |
+ int value = getAttribute(maxlengthAttr).toInt(&ok); |
return ok && value >= 0 ? value : -1; |
} |