Index: Source/core/html/HTMLTableElement.cpp |
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp |
index 7c30e4dfee1ee2f11719a4745cfb765f940eee52..49c56e979d16cfa8cbefd9c68342bca859433ab8 100644 |
--- a/Source/core/html/HTMLTableElement.cpp |
+++ b/Source/core/html/HTMLTableElement.cpp |
@@ -37,6 +37,7 @@ |
#include "core/dom/ElementTraversal.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/html/HTMLTableCaptionElement.h" |
+#include "core/html/HTMLTableCellElement.h" |
#include "core/html/HTMLTableRowElement.h" |
#include "core/html/HTMLTableRowsCollection.h" |
#include "core/html/HTMLTableSectionElement.h" |
@@ -255,7 +256,7 @@ void HTMLTableElement::setNeedsTableStyleRecalc() const |
Element* element = ElementTraversal::next(*this, this); |
while (element) { |
element->setNeedsStyleRecalc(LocalStyleChange); |
- if (element->hasTagName(tdTag) || element->hasTagName(thTag)) |
+ if (isHTMLTableCellElement(*element)) |
element = ElementTraversal::nextSkippingChildren(*element, this); |
else |
element = ElementTraversal::next(*element, this); |