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

Unified Diff: Source/core/html/HTMLImageElement.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/HTMLElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImageElement.cpp
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
index 25530270563cebb52bdb81f817486c6cdea9399e..97bb1019685f683e517c689be8e3ea509f9b6620 100644
--- a/Source/core/html/HTMLImageElement.cpp
+++ b/Source/core/html/HTMLImageElement.cpp
@@ -309,7 +309,7 @@ bool HTMLImageElement::draggable() const
void HTMLImageElement::setHeight(int value)
{
- setAttribute(heightAttr, String::number(value));
+ setIntegralAttribute(heightAttr, value);
}
KURL HTMLImageElement::src() const
@@ -324,7 +324,7 @@ void HTMLImageElement::setSrc(const String& value)
void HTMLImageElement::setWidth(int value)
{
- setAttribute(widthAttr, String::number(value));
+ setIntegralAttribute(widthAttr, value);
}
int HTMLImageElement::x() const
« no previous file with comments | « Source/core/html/HTMLElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698