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

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

Issue 725593004: Prevent the load event from firing inside DOMContentLoaded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Done->FinishedParsing Created 6 years, 1 month 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/loader/FrameLoader.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 e5cc2bde9aef458ae1ef42d94cbfcd5bab8f4499..e06c6998513dd3b5ecbc799b41adb80f3fd2f28f 100644
--- a/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -1486,7 +1486,7 @@ void XMLDocumentParser::doEnd()
xmlDocPtr doc = xmlDocPtrForString(document()->fetcher(), m_originalSourceForTransform.toString(), document()->url().string());
document()->setTransformSource(adoptPtr(new TransformSource(doc)));
// Make the document think it's done, so it will apply XSL stylesheets.
- document()->setParsing(false);
+ document()->setParsingState(Document::FinishedParsing);
document()->styleResolverChanged();
// styleResolverChanged() call can detach the parser and null out its
@@ -1494,7 +1494,7 @@ void XMLDocumentParser::doEnd()
if (isDetached())
return;
- document()->setParsing(true);
+ document()->setParsingState(Document::Parsing);
DocumentParser::stopParsing();
}
}
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698