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

Unified Diff: Source/core/html/parser/HTMLElementStack.cpp

Issue 18313005: Introduce isHTMLTableElement and toHTMLTableElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Retry Created 7 years, 5 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
« no previous file with comments | « Source/core/html/HTMLTableRowsCollection.cpp ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLElementStack.cpp
diff --git a/Source/core/html/parser/HTMLElementStack.cpp b/Source/core/html/parser/HTMLElementStack.cpp
index ed7cccc23df1d7cac3225f51eade1ab28aca69e2..1c2e2fa4091c846b82202755ae0203f879837d3c 100644
--- a/Source/core/html/parser/HTMLElementStack.cpp
+++ b/Source/core/html/parser/HTMLElementStack.cpp
@@ -32,6 +32,7 @@
#include "SVGNames.h"
#include "core/dom/Element.h"
#include "core/html/HTMLOptGroupElement.h"
+#include "core/html/HTMLTableElement.h"
#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -53,7 +54,7 @@ inline bool isScopeMarker(HTMLStackItem* item)
|| item->hasTagName(captionTag)
|| item->hasTagName(marqueeTag)
|| item->hasTagName(objectTag)
- || item->hasTagName(tableTag)
+ || isHTMLTableElement(item->node())
|| item->hasTagName(tdTag)
|| item->hasTagName(thTag)
|| item->hasTagName(MathMLNames::miTag)
@@ -78,7 +79,7 @@ inline bool isListItemScopeMarker(HTMLStackItem* item)
inline bool isTableScopeMarker(HTMLStackItem* item)
{
- return item->hasTagName(tableTag)
+ return isHTMLTableElement(item->node())
|| item->hasTagName(templateTag)
|| isRootNode(item);
}
« no previous file with comments | « Source/core/html/HTMLTableRowsCollection.cpp ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698