Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1051)

Unified Diff: Source/core/html/HTMLTextAreaElement.cpp

Issue 84713002: Add number() static methods to AtomicString class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass NaN as default argument Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLTableColElement.cpp ('k') | Source/core/html/HTMLViewSourceDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/core/html/HTMLTableColElement.cpp ('k') | Source/core/html/HTMLViewSourceDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698