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 |