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

Unified Diff: Source/core/dom/Element.cpp

Issue 84713002: Add number() static methods to AtomicString class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index eb460333e5b95235ed2704f3e89e9b50ffecbc31..b792d73046ac4f848dc2a58c4bf1eae62b7c3415 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2752,8 +2752,7 @@ int Element::getIntegralAttribute(const QualifiedName& attributeName) const
void Element::setIntegralAttribute(const QualifiedName& attributeName, int value)
{
- // FIXME: Need an AtomicString version of String::number.
- setAttribute(attributeName, String::number(value));
+ setAttribute(attributeName, AtomicString::number(value));
}
unsigned Element::getUnsignedIntegralAttribute(const QualifiedName& attributeName) const
@@ -2763,8 +2762,7 @@ unsigned Element::getUnsignedIntegralAttribute(const QualifiedName& attributeNam
void Element::setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsigned value)
{
- // FIXME: Need an AtomicString version of String::number.
- setAttribute(attributeName, String::number(value));
+ setAttribute(attributeName, AtomicString::number(value));
}
bool Element::childShouldCreateRenderer(const Node& child) const

Powered by Google App Engine
This is Rietveld 408576698