Index: Source/core/html/HTMLTableColElement.cpp |
diff --git a/Source/core/html/HTMLTableColElement.cpp b/Source/core/html/HTMLTableColElement.cpp |
index 878d3657f8b459d2f39f2d47ee8d130929e1387b..fa06ce204c0dda31d80e4a919124e104f2e6cdb7 100644 |
--- a/Source/core/html/HTMLTableColElement.cpp |
+++ b/Source/core/html/HTMLTableColElement.cpp |
@@ -61,8 +61,8 @@ void HTMLTableColElement::collectStyleForPresentationAttribute(const QualifiedNa |
void HTMLTableColElement::parseAttribute(const QualifiedName& name, const AtomicString& value) |
{ |
if (name == spanAttr) { |
- int newSpan = 0; |
- if (value.isEmpty() || !parseHTMLInteger(value, newSpan) || newSpan < 1) { |
+ unsigned newSpan = 0; |
+ if (value.isEmpty() || !parseHTMLNonNegativeInteger(value, newSpan) || newSpan < 1) { |
// If the value of span is not a valid non-negative integer greater than zero, |
// set it to 1. |
newSpan = 1; |
@@ -92,9 +92,9 @@ const StylePropertySet* HTMLTableColElement::additionalPresentationAttributeStyl |
return nullptr; |
} |
-void HTMLTableColElement::setSpan(int n) |
+void HTMLTableColElement::setSpan(unsigned n) |
{ |
- setIntegralAttribute(spanAttr, n); |
+ setUnsignedIntegralAttribute(spanAttr, n); |
} |
const AtomicString& HTMLTableColElement::width() const |