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

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

Issue 2002063003: Change "bool createdByParser" of createElement() to enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cestate
Patch Set: Add ImportNode Created 4 years, 7 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: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
index 839f09e6a7d824ed4586b98d00d5b4e632e338f9..f120f51304cabbc4c677ccd0d4e2dd7b0fc29418 100644
--- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -979,7 +979,7 @@ void XMLDocumentParser::startElementNs(const AtomicString& localName, const Atom
m_sawFirstElement = true;
QualifiedName qName(prefix, localName, adjustedURI);
- Element* newElement = m_currentNode->document().createElement(qName, true);
+ Element* newElement = m_currentNode->document().createElement(qName, CreatedByParser);
if (!newElement) {
stopParsing();
return;

Powered by Google App Engine
This is Rietveld 408576698