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

Unified Diff: Source/core/html/HTMLMetaElement-in.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/HTMLMetaElement-in.cpp
diff --git a/Source/core/html/HTMLMetaElement-in.cpp b/Source/core/html/HTMLMetaElement-in.cpp
index f63a6f834ff1d3ca965cb4912eb1d4b076adc737..d63713d0ee7dffdbb1dfc52cb83bfdb52c03fc16 100644
--- a/Source/core/html/HTMLMetaElement-in.cpp
+++ b/Source/core/html/HTMLMetaElement-in.cpp
@@ -449,7 +449,7 @@ static bool inDocumentHead(HTMLMetaElement* element)
return false;
for (Element* current = element; current; current = current->parentElement()) {
- if (current->hasTagName(HTMLNames::headTag))
+ if (isHTMLHeadElement(*current))
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698