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

Unified Diff: Source/core/html/HTMLTableCellElement.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/HTMLSelectElement.cpp ('k') | Source/core/html/HTMLTableColElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableCellElement.cpp
diff --git a/Source/core/html/HTMLTableCellElement.cpp b/Source/core/html/HTMLTableCellElement.cpp
index 34f7bada2afbdf1db4509f9136dd97cab57a0538..a6c5b1ee54ff2c25c92c5b9db7794592d67a2b02 100644
--- a/Source/core/html/HTMLTableCellElement.cpp
+++ b/Source/core/html/HTMLTableCellElement.cpp
@@ -142,7 +142,7 @@ String HTMLTableCellElement::axis() const
void HTMLTableCellElement::setColSpan(int n)
{
- setAttribute(colspanAttr, String::number(n));
+ setIntegralAttribute(colspanAttr, n);
}
String HTMLTableCellElement::headers() const
@@ -152,7 +152,7 @@ String HTMLTableCellElement::headers() const
void HTMLTableCellElement::setRowSpan(int n)
{
- setAttribute(rowspanAttr, String::number(n));
+ setIntegralAttribute(rowspanAttr, n);
}
String HTMLTableCellElement::scope() const
« no previous file with comments | « Source/core/html/HTMLSelectElement.cpp ('k') | Source/core/html/HTMLTableColElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698