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

Unified Diff: Source/core/html/HTMLLIElement.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
« no previous file with comments | « no previous file | Source/core/html/HTMLLegendElement.cpp » ('j') | Source/core/html/HTMLMapElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLIElement.cpp
diff --git a/Source/core/html/HTMLLIElement.cpp b/Source/core/html/HTMLLIElement.cpp
index aba200729818498b5ab31e4312e58bd9d4f219e0..9d8404a458779b054eb73695cf797e4e30dc4027 100644
--- a/Source/core/html/HTMLLIElement.cpp
+++ b/Source/core/html/HTMLLIElement.cpp
@@ -92,7 +92,7 @@ void HTMLLIElement::attach(const AttachContext& context)
current = current->parentElement();
if (!current)
break;
- if (current->hasTagName(ulTag) || current->hasTagName(olTag))
+ if (isHTMLUListElement(*current) || isHTMLOListElement(*current))
listNode = current;
}
« no previous file with comments | « no previous file | Source/core/html/HTMLLegendElement.cpp » ('j') | Source/core/html/HTMLMapElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698