Index: Source/core/html/HTMLTableColElement.cpp |
diff --git a/Source/core/html/HTMLTableColElement.cpp b/Source/core/html/HTMLTableColElement.cpp |
index 19e301d95c045add824696d4600acab78d74193a..0bae57e51fc42772028dfd58be8e835a3271641d 100644 |
--- a/Source/core/html/HTMLTableColElement.cpp |
+++ b/Source/core/html/HTMLTableColElement.cpp |
@@ -64,7 +64,8 @@ void HTMLTableColElement::collectStyleForPresentationAttribute(const QualifiedNa |
void HTMLTableColElement::parseAttribute(const QualifiedName& name, const AtomicString& value) |
{ |
if (name == spanAttr) { |
- m_span = !value.isNull() ? value.toInt() : 1; |
+ int newSpan = value.toInt(); |
kenneth.r.christiansen
2014/03/11 13:59:16
I would add a comment here
// Use 1 if number is
|
+ m_span = newSpan ? newSpan : 1; |
if (renderer() && renderer()->isRenderTableCol()) |
renderer()->updateFromElement(); |
} else if (name == widthAttr) { |