Index: Source/core/html/HTMLTablePartElement.cpp |
diff --git a/Source/core/html/HTMLTablePartElement.cpp b/Source/core/html/HTMLTablePartElement.cpp |
index 8879f9dab8d8df9177bde2e399ef141d32815e45..8146ae4181dd70f47a87d4fc148cad51f49046bc 100644 |
--- a/Source/core/html/HTMLTablePartElement.cpp |
+++ b/Source/core/html/HTMLTablePartElement.cpp |
@@ -86,7 +86,7 @@ void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedN |
HTMLTableElement* HTMLTablePartElement::findParentTable() const |
{ |
ContainerNode* parent = NodeRenderingTraversal::parent(this); |
- while (parent && !parent->hasTagName(tableTag)) |
+ while (parent && !isHTMLTableElement(*parent)) |
parent = NodeRenderingTraversal::parent(parent); |
return toHTMLTableElement(parent); |
} |