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

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

Issue 193623002: Use new is*Element() helper functions more in core/ code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « Source/core/testing/Internals.cpp ('k') | no next file » | 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 c2a06b2a0c3401e4498807e6c9e81e54e5b145b7..5824e2bbdcafe0b5e7c389d75ebb5f8ae6fd5ae5 100644
--- a/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -1010,13 +1010,13 @@ void XMLDocumentParser::startElementNs(const AtomicString& localName, const Atom
m_currentNode->parserAppendChild(newElement.get());
- if (newElement->hasTagName(HTMLNames::templateTag))
- pushCurrentNode(toHTMLTemplateElement(newElement.get())->content());
+ if (isHTMLTemplateElement(*newElement))
+ pushCurrentNode(toHTMLTemplateElement(*newElement).content());
else
pushCurrentNode(newElement.get());
- if (newElement->hasTagName(HTMLNames::htmlTag))
- toHTMLHtmlElement(newElement)->insertedByParser();
+ if (isHTMLHtmlElement(*newElement))
+ toHTMLHtmlElement(*newElement).insertedByParser();
if (!m_parsingFragment && isFirstElement && document()->frame())
document()->frame()->loader().dispatchDocumentElementAvailable();
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698