From ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 24 Feb 2012 16:36:50 +0100 Subject: Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790) --- Source/WebCore/html/HTMLTableSectionElement.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Source/WebCore/html/HTMLTableSectionElement.cpp') diff --git a/Source/WebCore/html/HTMLTableSectionElement.cpp b/Source/WebCore/html/HTMLTableSectionElement.cpp index 0e7872d12..f450fea25 100644 --- a/Source/WebCore/html/HTMLTableSectionElement.cpp +++ b/Source/WebCore/html/HTMLTableSectionElement.cpp @@ -49,12 +49,9 @@ PassRefPtr HTMLTableSectionElement::create(const Qualif StylePropertySet* HTMLTableSectionElement::additionalAttributeStyle() { - ContainerNode* p = parentNode(); - while (p && !p->hasTagName(tableTag)) - p = p->parentNode(); - if (!p) - return 0; - return static_cast(p)->additionalGroupStyle(true); + if (HTMLTableElement* table = findParentTable()) + return table->additionalGroupStyle(true); + return 0; } // these functions are rather slow, since we need to get the row at -- cgit v1.2.1