| 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 40ef1fcd118a8015b7f67b60e428f334877ee56b..7703bda709b6684c05a2d5079b9c29a0e8021046 100644
|
| --- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -443,14 +443,10 @@ void XMLDocumentParser::end()
|
| if (m_parserPaused)
|
| return;
|
|
|
| - if (m_sawError) {
|
| + if (m_sawError)
|
| insertErrorMessageBlock();
|
| - } else {
|
| + else
|
| updateLeafTextNode();
|
| - // Do not bail out if in a stopped state, but notify document that
|
| - // parsing has finished.
|
| - document()->styleEngine().resolverChanged(FullStyleUpdate);
|
| - }
|
|
|
| if (isParsing())
|
| prepareToStopParsing();
|
| @@ -1536,16 +1532,6 @@ void XMLDocumentParser::doEnd()
|
| } else if (m_sawXSLTransform) {
|
| xmlDocPtr doc = xmlDocPtrForString(document(), m_originalSourceForTransform.toString(), document()->url().getString());
|
| document()->setTransformSource(adoptPtr(new TransformSource(doc)));
|
| - // Make the document think it's done, so it will apply XSL stylesheets.
|
| - document()->setParsingState(Document::FinishedParsing);
|
| - document()->styleEngine().resolverChanged(FullStyleUpdate);
|
| -
|
| - // resolverChanged() call can detach the parser and null out its
|
| - // document. In that case, we just bail out.
|
| - if (isDetached())
|
| - return;
|
| -
|
| - document()->setParsingState(Document::Parsing);
|
| DocumentParser::stopParsing();
|
| }
|
| }
|
|
|