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

Unified Diff: Source/core/xml/parser/XMLDocumentParser.cpp

Issue 19098002: Introduce isHTMLHtmlElement and toHTMLHtmlElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/rendering/RenderObject.cpp ('k') | Source/web/WebPageSerializerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/parser/XMLDocumentParser.cpp
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
index d3c85bf5333fd41df8a1a1bc65e9aa9d22892785..a55bd1acf49c8c754a2cb2ee97637ba991eb4b63 100644
--- a/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -974,8 +974,8 @@ void XMLDocumentParser::startElementNs(const AtomicString& localName, const Atom
if (m_view && currentNode->attached() && !newElement->attached())
newElement->attach();
- if (newElement->hasTagName(HTMLNames::htmlTag))
- static_cast<HTMLHtmlElement*>(newElement.get())->insertedByParser();
+ if (isHTMLHtmlElement(newElement.get()))
+ toHTMLHtmlElement(newElement.get())->insertedByParser();
if (!m_parsingFragment && isFirstElement && document()->frame())
document()->frame()->loader()->dispatchDocumentElementAvailable();
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/web/WebPageSerializerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698