Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(944)

Unified Diff: Source/core/html/HTMLTableElement.cpp

Issue 195813003: Use new is*Element() helper functions further more in HTML code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix bad assertion Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698