Index: Source/core/rendering/RenderTableCol.cpp |
diff --git a/Source/core/rendering/RenderTableCol.cpp b/Source/core/rendering/RenderTableCol.cpp |
index 26c5935f97f1d3bd065cfbc31b1acc90e6fc6c8a..60d548ea1de3466c9301d26441ff6576cf25bb9f 100644 |
--- a/Source/core/rendering/RenderTableCol.cpp |
+++ b/Source/core/rendering/RenderTableCol.cpp |
@@ -60,9 +60,9 @@ void RenderTableCol::updateFromElement() |
{ |
unsigned oldSpan = m_span; |
Node* n = node(); |
- if (n && (n->hasTagName(colTag) || n->hasTagName(colgroupTag))) { |
- HTMLTableColElement* tc = toHTMLTableColElement(n); |
- m_span = tc->span(); |
+ if (n && isHTMLTableColElement(*n)) { |
+ HTMLTableColElement& tc = toHTMLTableColElement(*n); |
+ m_span = tc.span(); |
} else |
m_span = !(style() && style()->display() == TABLE_COLUMN_GROUP); |
if (m_span != oldSpan && style() && parent()) |